documentor: Alt-Left/Right shortcuts when edit pane is active
authorJerome St-Louis <jerome@ecere.com>
Wed, 3 Aug 2016 12:48:14 +0000 (08:48 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 3 Aug 2016 12:48:56 +0000 (08:48 -0400)
documentor/src/Documentor.ec

index 12f2c21..c3e6212 100644 (file)
@@ -2550,6 +2550,16 @@ class MainForm : Window
    bool dontRecordHistory;
    Module homeModule;
 
+   bool OnKeyHit(Key key, unichar ch)
+   {
+      switch(key)
+      {
+         case altLeft: Back(); return false;
+         case altRight: Forward(); return false;
+      }
+      return true;
+   }
+
    bool Forward()
    {
       if(historyPos < history.count-1)