mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 14:39:13 +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
|
begin
|
||||||
Length := 1;
|
Length := 1;
|
||||||
{$ifndef gtk1}
|
{$ifndef gtk1}
|
||||||
if C in [#1..#20] then
|
if C in [#$1..#$20] then
|
||||||
begin
|
begin
|
||||||
KeyVal := $FF00 or Ord(C);
|
KeyVal := $FF00 or Ord(C);
|
||||||
if KeyVal = GDK_KEY_BackSpace then
|
if KeyVal = GDK_KEY_BackSpace then
|
||||||
@ -2342,7 +2342,7 @@ begin
|
|||||||
StopKeyEvent;
|
StopKeyEvent;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if (not EventStopped) and aBeforeEvent
|
if (not EventStopped) and ABeforeEvent
|
||||||
then begin
|
then begin
|
||||||
if KeyActivatedAccelerator then exit;
|
if KeyActivatedAccelerator then exit;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user