Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Registering for the ESC key on the document appears not to work. #2264
Given the following code:
The event object will be logged to the console for alpha-numerics, enter, backspace, etc. but not for the escape key. I've double checked my code in a browser to ensure I haven't made a mistake and the escape key triggers correctly in that context, but does not in electron. Is there something electron-specific I should be doing to handle this? It does seem like a bug though as it will cause various JS libraries to function incorrectly. A specific example of that is a modal dialog library that wants to enable dialogs to be closed by pressing the escape key.
Operating System: OSX 10.10.4
Chrome browser doesn't seems to handle it, so if you think it should you can create an issue in Chromium project.
I reproduced by: