mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:49:14 +02:00
LCL: Make LCL-GTK2 trigger OnUtf8KeyPress for keys ^A..^Z. Issue #26121, patch from Bart
git-svn-id: trunk@45729 -
This commit is contained in:
parent
2285bca51c
commit
1f2b6a6e20
@ -1961,6 +1961,9 @@ var
|
||||
if (AEvent^.keyval > $FF00) and (AEvent^.keyval < $FF20) and
|
||||
(AEvent^.keyval <> GDK_KEY_TAB) then
|
||||
Result := Chr(AEvent^.keyval xor $FF00)
|
||||
else
|
||||
if (AEvent^.keyval > $60) and (AEvent^.keyval < $7B) then
|
||||
Result := Chr(AEvent^.keyval - $60) //^A .. ^Z
|
||||
else
|
||||
Result := #0;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user