Skip to content
Open
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
9 changes: 9 additions & 0 deletions Parnassus.FMXContainer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,15 @@ procedure TFireMonkeyContainer.WMKeyDown(var Message: TWMKeyDown);
// Call again to remove any duplicate
PeekMessage(Msg, 0, WM_CHAR, WM_CHAR, PM_REMOVE);
FFMXForm.KeyDown(Key, KeyChar, Shift);
end
else if not (Message.CharCode in [VK_SHIFT, VK_CONTROL]) then //Shift and Control are handled by KeyDataToShiftState
begin
// In some circumstances non-character keycodes go directly to the FMX form (for instance after clicking the
// form). In other circumstances we land will land here.
// Without the following handling the KeyCodes are lost (eg. arrow keys, function keys etc. wont work)
Key := Message.CharCode;
KeyChar := #0;
FFMXForm.KeyDown(Key, KeyChar, Shift);
end;
end;

Expand Down