浏览代码

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

git-svn-id: trunk@46338 -
Tomas Hajny 5 年之前
父节点
当前提交
f8144bb724
共有 1 个文件被更改,包括 2 次插入1 次删除
  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);