« get me outta code hell

(f) to open menu as well as (m) - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-11-23 11:33:20 -0400
committerFlorrie <towerofnix@gmail.com>2018-11-23 11:33:22 -0400
commit3b5bea9be912902f962ed4619092d10fc92e7988 (patch)
tree5bb278d1253aa447df6d50a25506f3147f427ac3
parent6993905eaf1714de40babae53f5154238cde1172 (diff)
(f) to open menu as well as (m)
This way you can activate the menu without taking your right hand off
the arrow keys (in typical keyboards).
-rw-r--r--README.md2
-rw-r--r--ui.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index aa4e11c..1da5a82 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ You're also welcome to share any ideas, suggestions, and questions through there
 * **In the main listing:**
   * <kbd>Enter</kbd> - if the selected item is a group, enter it; if it's a track, play it
   * <kbd>Backspace</kbd> - leave the current group (if in one)
-  * <kbd>m</kbd> - open a menu of actions related to the selected item or group
+  * <kbd>m</kbd> or <kbd>f</kbd> - open a menu of actions related to the selected item or group
   * <kbd>q</kbd> - queue the selected track or group to play after any other items in the queue (usually after the current track)
   * <kbd>Q</kbd> (shift+Q) - queue the selected track or group to play immediately after what's currently playing
   * <kbd>d</kbd> - download the selected track (but don't play it)
diff --git a/ui.js b/ui.js
index d185811..df05bf0 100644
--- a/ui.js
+++ b/ui.js
@@ -1054,7 +1054,7 @@ class InteractiveGrouplikeItemElement extends BasicGrouplikeItemElement {
       }
     } else if (telc.isCaselessLetter(keyBuf, 'x')) {
       this.emit('remove')
-    } else if (telc.isCaselessLetter(keyBuf, 'm')) {
+    } else if (telc.isCaselessLetter(keyBuf, 'm') || telc.isCaselessLetter(keyBuf, 'f')) {
       const editMode = this.recordStore.app.editMode
       const anyMarked = editMode && !!this.recordStore.app.markGrouplike.items.length
       this.emit('menu', {