Procházet zdrojové kódy

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

git-svn-id: trunk@46338 -
Tomas Hajny před 5 roky
rodič
revize
f8144bb724
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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);