Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(osx/#2924): Modifier keys not working with Romanji keyboard #2938

Merged
merged 8 commits into from
Jan 6, 2021

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Jan 5, 2021

Issue: On OSX, if the Romanji keyboard is selected, keys with modifiers (Cmd+P, etc) would not be processed correctly.

Defect: This was a regression from #2902 - in that change, we rely on querying our keyboard-layout library for keymap information. However, we weren't able to get keymap information for Japanese / virtual keyboard layouts.

Fix: Turns out a similar issue was encountered in the node-native-keymap library here: microsoft/node-native-keymap@f735d67

Ported over a similar fix for our keyboard-layout strategy - first, try TISCopyCurrentKeyboardInputSource, and if that returns NULL, try TISCopyCurrentKeyboardLayoutInputSource.

Fixes #2924

@bryphe bryphe merged commit d4e21ff into master Jan 6, 2021
@bryphe bryphe deleted the fix/osx/2924/romanji-input branch January 6, 2021 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modifier keys not working
1 participant