This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes Search+? accelerator work for colemak keyboard.
For certain XKB key mapping, e.g. colemak, the modifier key is mapped to non-modifier, e.g. Search (identical to WIN key) maps to backspace. In such case, event rewriter can rewrite the key back to modifier key successfully but fails to rewrite the modifier flag to the later keys, because the later keys has no modifier flag, so nothing to rewrite. This cl leverages the "latches" flag state in event rewriter to make the remapped modifier flag can be remembered and apply to the later keys. BUG=215923 TEST=Activates colemak keyboard, press Search+U (which is Search+L in colemak key mapping), the screen can be locked. Review URL: https://codereview.chromium.org/1473773004 Cr-Commit-Position: refs/heads/master@{#362088} (cherry picked from commit 27aa4f7) Review URL: https://codereview.chromium.org/1486423004 . Cr-Commit-Position: refs/branch-heads/2564@{#200} Cr-Branched-From: 1283eca-refs/heads/master@{#359700}
- Loading branch information
1 parent
a691be7
commit 8761add
Showing
3 changed files
with
20 additions
and
22 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