Fix lag in TTerminalWindow
[nikiroo-utils.git] / src / jexer / menu / TMenu.java
index 7cf6eb5d10d0ac2b5676f6bacc649a44c1065c84..667673b642c4f340dd91b411fe38e3904d0f5687 100644 (file)
@@ -56,6 +56,29 @@ public final class TMenu extends TWindow {
      */
     boolean isSubMenu = false;
 
+    /**
+     * The X position of the menu's title.
+     */
+    private int titleX;
+
+    /**
+     * Set the menu title X position.
+     *
+     * @param titleX the position
+     */
+    public void setTitleX(final int titleX) {
+        this.titleX = titleX;
+    }
+
+    /**
+     * Get the menu title X position.
+     *
+     * @return the position
+     */
+    public int getTitleX() {
+        return titleX;
+    }
+
     /**
      * The shortcut and title.
      */
@@ -422,7 +445,7 @@ public final class TMenu extends TWindow {
 
         case MID_OPEN_FILE:
             label = i18n.getString("menuOpen");
-            key = kbAltO;
+            key = kbF3;
             break;
 
         case MID_CUT: