Skip to content

keyup event not firing on OS X when the Meta key is pressed #5188

Closed
@MarshallOfSound

Description

@MarshallOfSound
  • Electron version: 0.37.6
  • Operating system: OS X

Run the following code on any webpage

window.addEventListener('keydown', (e) => console.log('down', e.key))
window.addEventListener('keyup', (e) => console.log('up', e.key))

Then perform a select all shortcut (Command + A) or any key with the Command key. You will get a pattern like this.

down Meta
down a
up Meta

The up event for the a key is not fired. This only occurs on OS X and when the meta (Command) key is down.

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