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:
Marc Durdin 2024-03-04 15:49:26 +07:00
parent dd6b942182
commit 219f375aeb

View file

@ -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;