Browse Source

+ added possibility to navigate among tabs using Ctrl-PgUp/Ctrl-PgDn

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

+ 16 - 0
packages/fv/src/tabs.pas

@@ -399,6 +399,22 @@ begin
                    ClearEvent(Event);
                    end;
                  end;
+            kbCtrlPgUp:
+              begin
+               if ActiveDef > 0 then
+                Index := Pred (ActiveDef)
+               else
+                Index := Pred (DefCount);
+               ClearEvent(Event);
+              end;
+            kbCtrlPgDn:
+              begin
+               if ActiveDef < Pred (DefCount) then
+                Index := Succ (ActiveDef)
+               else
+                Index := 0;
+               ClearEvent(Event);
+              end;
        else
        for I:=0 to DefCount-1 do
            begin