Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Restore ability to bind dead keys such as alt-u on macOS #186

Merged
merged 1 commit into from
Nov 21, 2016

Conversation

nathansobo
Copy link
Contributor

In a previous fix for IME in #178, we bail out of keystroke handling if the legacy keyCode property is 229. Unfortunately, this is also the value of keyCode for keystrokes like alt-u, which don’t pop up the IME menu. These keystrokes can and should be handled normally. It seems like the best way to distinguish these keys from the IME case is that their key value is ‘Dead’.

A previous fix for IME input bails out of keystroke handling if the
legacy keyCode property is 229. Unfortunately, this is also the value
of keyCode for keystrokes like alt-u, which don’t pop up the IME menu.
These keystrokes should be handled normally. It seems like the best way
to distinguish these keys from the IME case is that their key value is
‘Dead’.
@nathansobo nathansobo merged commit ac2703c into master Nov 21, 2016
@nathansobo nathansobo deleted the ns-fix-dead-keys-on-macos branch November 21, 2016 16:45
nathansobo pushed a commit that referenced this pull request Nov 21, 2016
Restore ability to bind dead keys such as alt-u on macOS
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant