mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 23:19:29 +02:00
gtk2: fix typo in CharToKeyVal logic
git-svn-id: trunk@21456 -
This commit is contained in:
parent
9cda167f70
commit
cd516210d7
@ -2067,7 +2067,7 @@ var
|
||||
begin
|
||||
Length := 1;
|
||||
{$ifndef gtk1}
|
||||
if C in [#1..#20] then
|
||||
if C in [#$1..#$20] then
|
||||
begin
|
||||
KeyVal := $FF00 or Ord(C);
|
||||
if KeyVal = GDK_KEY_BackSpace then
|
||||
@ -2342,7 +2342,7 @@ begin
|
||||
StopKeyEvent;
|
||||
end;
|
||||
|
||||
if (not EventStopped) and aBeforeEvent
|
||||
if (not EventStopped) and ABeforeEvent
|
||||
then begin
|
||||
if KeyActivatedAccelerator then exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user