mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 01:45:32 +00:00
fix(developer): Treat Right Shift as Shift in debugger
Fixes #10915. Note that a more systemic fix to keyman core will involve ensuring that the debug list is always properly terminated, but that does not need to happen in beta.
This commit is contained in:
parent
dd6b942182
commit
219f375aeb
1 changed files with 7 additions and 0 deletions
|
|
@ -434,6 +434,13 @@ begin
|
|||
// mapping; the best way to do this is to extract the scan code from
|
||||
// the message data and work from that
|
||||
vkey := MapScanCodeToUSVK((Message.LParam and $FF0000) shr 16);
|
||||
|
||||
// We don't support the Right Shift modifier in Keyman;
|
||||
// we treat it as Left Shift, even though MapScanCodeToUSVK
|
||||
// recognizes it
|
||||
if vkey = VK_RSHIFT then
|
||||
vkey := VK_SHIFT;
|
||||
|
||||
modifier := 0;
|
||||
|
||||
if GetKeyState(VK_LCONTROL) < 0 then modifier := modifier or KM_CORE_MODIFIER_LCTRL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue