gtk2: fix typo in CharToKeyVal logic

git-svn-id: trunk@21456 -
This commit is contained in:
paul 2009-08-26 17:47:14 +00:00
parent 9cda167f70
commit cd516210d7

View File

@ -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;