Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(developer): Treat Right Shift as Shift in debugger #10919

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions developer/src/tike/child/UfrmDebug.pas
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,13 @@ function TfrmDebug.ProcessKeyEvent(var Message: TMessage): Boolean;
// 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;
Expand Down
Loading