mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 10:01:12 +02:00
Qt: Alt+Shift+[0..9] does not work under x11. issue #36274
git-svn-id: trunk@62217 -
This commit is contained in:
parent
0e6259598f
commit
4116396ac9
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user