Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.
This repository was archived by the owner on May 16, 2024. It is now read-only.

jsaction.createKeyboardEvent does not work in Firefox 57.0+ #12

Description

@DrMarcII

Reproduce: run tests in replay_test.js

Firefox has implemented KeyboardEvent.initKeyboardEvent, but it does not correctly set the keyCode or charCode.

Based on https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent, it looks like the preferred way to create these events is with the KeyboardEvent constructor (both initKeyEvent and initKeyboardEvent are deprecated). The most surprising part of this to me, is that MDN also says Gecko will not implement initKeyboardEvent, but it appears that something has changed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions