Qt: Alt+Shift+[0..9] does not work under x11. issue #36274

git-svn-id: trunk@62217 -
This commit is contained in:
zeljko 2019-11-07 09:33:23 +00:00
parent 0e6259598f
commit 4116396ac9

View File

@ -3325,6 +3325,20 @@ begin
if (Modifiers = QtShiftModifier or QtControlModifier) then
Text := '';
end;
end else
if (Modifiers = QtShiftModifier or QtAltModifier) then
begin
ScanCode := QKeyEvent_nativeScanCode(QKeyEventH(Event));
if (length(Text) = 1) and (ScanCode in [10..19]) then
begin
if ScanCode = 19 then
ScanCode := 48
else
ScanCode := ScanCode + 39;
KeyMsg.CharCode := Word(ScanCode);
if (Modifiers = QtShiftModifier or QtAltModifier) then
Text := '';
end;
end;
{$ENDIF}
{$ENDIF}