mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 12:27:13 +01:00
Qt: fill TLMKey.Unused field with 1 if key is autorepeated
git-svn-id: trunk@35650 -
This commit is contained in:
parent
48fb810448
commit
34ba568cd6
@ -2723,6 +2723,10 @@ begin
|
||||
Modifiers := QKeyEvent_modifiers(QKeyEventH(Event));
|
||||
IsSysKey := (QtAltModifier and Modifiers) <> $0;
|
||||
KeyMsg.KeyData := QtKeyModifiersToKeyState(Modifiers);
|
||||
if QKeyEvent_isAutoRepeat(QKeyEventH(Event)) then
|
||||
KeyMsg.Unused := 1
|
||||
else
|
||||
KeyMsg.Unused := 0;
|
||||
{$ifdef windows}
|
||||
ACharCode := QKeyEvent_nativeVirtualKey(QKeyEventH(Event));
|
||||
KeyMsg.CharCode := ACharCode;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user