-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
W32 GUI: ctrl+alt=altgr; intelligent "unshifting"
Implementation uses additional call to ToUnicode() to recognize more precisely, what is going on concerning Alt, Crtl and Shift modifiers. ctrl+alt=altgr ============== Fixes: questionable PR vim#10308, (was blamed by @sthomen), recovering standard-Windows behavior In case both left Ctrl and Alt are hold, attempt is firstly made to translate keypress in the same way as AltGr was hold, and if translation differs from original (without Ctrl+Alt), effect is kept and both Ctrl and Alt modifiers are forcibly removed in _OnChar(). intelligent "unshifting" ======================== Fixes: vim#10324 Similarly, in case Shift is hold, attempt is firstly made to translate keypress in the way that Shift key effect is removed. If such translation differs from original (with Shift hold) - Shift modifier is assumed to be already accounted by translation, and _OnChar() is instructed to forcibly remove Shift modifier.
- Loading branch information
1 parent
cb5ed4d
commit dfab906
Showing
1 changed file
with
119 additions
and
4 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