« get me outta code hell

Avoid conflict in isToggleLoop/isFocusLabels keys - 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>2019-08-25 14:03:13 -0300
committerFlorrie <towerofnix@gmail.com>2019-08-25 14:03:13 -0300
commit5263e71bcc592b4f3f5b061559ee7a49c874db94 (patch)
tree224a81cf12a62e8ca4043bb6ed13015e78d3065d
parentf5ec52beb8afd5490ed854fddf6f5744dc31fe83 (diff)
Avoid conflict in isToggleLoop/isFocusLabels keys
Maybe there'll be a better key than L for isFocusLabels later. We'll
see!
-rw-r--r--ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index 0d17fb8..61e8db0 100644
--- a/ui.js
+++ b/ui.js
@@ -59,7 +59,7 @@ const keyBindings = [
   ['isMenu', 'm'],
   ['isMenu', 'f'],
   ['isTogglePause', telc.isSpace],
-  ['isToggleLoop', 'l'],
+  ['isToggleLoop', 'l', {caseless: false}],
   ['isStop', telc.isEscape],
   ['isVolumeUp', 'v', {caseless: false}],
   ['isVolumeDown', 'V', {caseless: false}],
@@ -78,7 +78,7 @@ const keyBindings = [
   ['isShuffleQueue', 's'],
   ['isClearQueue', 'c'],
   ['isFocusMenubar', ';'],
-  ['isFocusLabels', 'l'], // *** conflicts with isToggleLoop!!! must change this
+  ['isFocusLabels', 'L', {caseless: false}], // todo: better key? to let isToggleLoop be caseless again
   ['isSelectUp', telc.isShiftUp],
   ['isSelectDown', telc.isShiftDown],