Fix status bar on treeview window
authorKevin Lamonte <kevin.lamonte@gmail.com>
Fri, 11 May 2018 18:07:19 +0000 (14:07 -0400)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Fri, 11 May 2018 18:07:19 +0000 (14:07 -0400)
src/jexer/ttree/TTreeViewWindow.java

index 2adf61681ab3857e26403da73cd23af0d2f769eb..2c642063812c2262677f12f9aeb0417149b7f400 100644 (file)
@@ -190,6 +190,13 @@ public class TTreeViewWindow extends TScrollableWindow {
             return;
         }
 
+        // Give the shortcut bar a shot at this.
+        if (statusBar != null) {
+            if (statusBar.statusBarKeypress(keypress)) {
+                return;
+            }
+        }
+
         if (keypress.equals(kbShiftLeft)
             || keypress.equals(kbCtrlLeft)
             || keypress.equals(kbAltLeft)