Browse Source

* fix bug causing misinterpretation of cursor keys in case of tab without shurtcuts

git-svn-id: trunk@46338 -
Tomas Hajny 5 years ago
parent
commit
f8144bb724
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fv/src/tabs.pas

+ 2 - 1
packages/fv/src/tabs.pas

@@ -402,7 +402,8 @@ begin
        else
        for I:=0 to DefCount-1 do
            begin
-             if Upcase(GetAltChar(Event.KeyCode))=AtTab(I)^.ShortCut
+             if (AtTab(I)^.ShortCut <> #0) and
+                         (Upcase(GetAltChar(Event.KeyCode))=AtTab(I)^.ShortCut)
                 then begin
                        Index:=I;
                        ClearEvent(Event);