-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keybinding] Normalize key sequences to US layout
Some bindings, i.e. 'Toggle Line Comment' or 'Open Terminal' are bound to a sequence that are not directly reachable on many non-US keyboard layouts. For instance 'ctrlcmd+/' to toggle line comments doesn't work on german kb layouts, because the slash is above the `7` and therefore the shortcut is seen as `cmdctrl+shift+7` This change translates the given chord to a normalized US keysequence if the character is one of the US layout keys. I.e. for `cmdctrl+shift+7` we also know the typed character is `/` so if there is no direct keybinding we test against a US-keyboard layouted version. Fixes #1244 Signed-off-by: Sven Efftinge <[email protected]>
- Loading branch information
1 parent
f6ee123
commit ac9c215
Showing
3 changed files
with
62 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters