mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-25 09:07:40 +00:00
Merge pull request #13131 from keymanapp/fix/developer/13052-support-non-us-base-keyboard-in-debugger
fix(developer): support non-US base keyboard layouts in debuggers
This commit is contained in:
commit
b9c0c180db
2 changed files with 4 additions and 4 deletions
|
|
@ -39,7 +39,7 @@ uses
|
|||
UframeTextEditor,
|
||||
UfrmMDIEditor,
|
||||
UfrmTike,
|
||||
UserMessages;
|
||||
UserMessages, Keyman.Developer.UI.RichEdit41;
|
||||
|
||||
type
|
||||
TLdmlDebugUIStatus = (
|
||||
|
|
@ -340,7 +340,7 @@ begin
|
|||
if not SetKeyEventContext then
|
||||
Exit(False);
|
||||
|
||||
if km_core_process_event(FDebugCore.State, Message.WParam, modifier, 1, KM_CORE_EVENT_FLAG_DEFAULT) = KM_CORE_STATUS_OK then
|
||||
if km_core_process_event(FDebugCore.State, VKToScanCodeToVK(Message.WParam, GetKeyboardLayout(0)), modifier, 1, KM_CORE_EVENT_FLAG_DEFAULT) = KM_CORE_STATUS_OK then
|
||||
begin
|
||||
// Process keystroke -- true = swallow keystroke
|
||||
Result := True;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ uses
|
|||
UfrmDebugStatus,
|
||||
UfrmMDIEditor,
|
||||
UfrmTike,
|
||||
UserMessages;
|
||||
UserMessages, Keyman.Developer.UI.RichEdit41;
|
||||
|
||||
type
|
||||
TDebugLineEvent = procedure(Sender: TObject; ALine: Integer) of object;
|
||||
|
|
@ -465,7 +465,7 @@ begin
|
|||
if not SetKeyEventContext then
|
||||
Exit(False);
|
||||
|
||||
if km_core_process_event(FDebugCore.State, Message.WParam, modifier, 1, KM_CORE_EVENT_FLAG_DEFAULT) = KM_CORE_STATUS_OK then
|
||||
if km_core_process_event(FDebugCore.State, VKToScanCodeToVK(Message.WParam, GetKeyboardLayout(0)), modifier, 1, KM_CORE_EVENT_FLAG_DEFAULT) = KM_CORE_STATUS_OK then
|
||||
begin
|
||||
// Process keystroke -- true = swallow keystroke
|
||||
Result := True;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue