« get me outta code hell

Remove dead keyboard shortcut code - 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-04-11 21:25:20 -0300
committerFlorrie <towerofnix@gmail.com>2019-04-11 21:25:20 -0300
commit2d10be31973a146b5039b3804fac2acf22955b15 (patch)
treeac3733083aabfc83a1a10f366cc2d5f3e29b542c
parente4ba8ea5bc16ffd0a324ac50492277c9926329c6 (diff)
Remove dead keyboard shortcut code
-rw-r--r--ui.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/ui.js b/ui.js
index 72079ae..ba60ca0 100644
--- a/ui.js
+++ b/ui.js
@@ -2295,16 +2295,6 @@ class ContextMenu extends FocusElement {
       return false
     } else if (this.keyboardSelector.keyPressed(keyBuf)) {
       return false
-
-      const key = String.fromCharCode(keyBuf[0]).toLowerCase()
-      for (const input of this.form.inputs) {
-        if (input.selectable && input.menuKeyShortcut) {
-          if (input.menuKeyShortcut.toLowerCase() === key) {
-            this.form.selectInput(input)
-            return false
-          }
-        }
-      }
     }
     super.keyPressed(keyBuf)
   }