From 2d10be31973a146b5039b3804fac2acf22955b15 Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 11 Apr 2019 21:25:20 -0300 Subject: Remove dead keyboard shortcut code --- ui.js | 10 ---------- 1 file changed, 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) } -- cgit 1.3.0-6-gf8a5