« get me outta code hell

(Ctrl+L) to select playing track in queue - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-12-28 20:18:50 -0400
committerFlorrie <towerofnix@gmail.com>2018-12-28 20:18:50 -0400
commit1dcca8d02abab0f3ad511ed14a45c0fa67e8b6ca (patch)
treefeaec1fc607930b2e14585c7859b8a39e6b19efb /ui.js
parentaabdddbbf7092c83369b77617ce5eb2b7af3dde8 (diff)
(Ctrl+L) to select playing track in queue
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 7013ea5..cd2f409 100644
--- a/ui.js
+++ b/ui.js
@@ -943,6 +943,8 @@ class GrouplikeListingElement extends Form {
       this.form.scrollToBeginning()
     } else if (telc.isCharacter(keyBuf, 'G')) {
       this.form.selectAndShow(this.grouplike.items[this.grouplike.items.length - 1])
+    } else if (keyBuf[0] === 12 && this.grouplike.isTheQueue) { // ctrl-L
+      this.form.selectAndShow(this.recordStore.app.playingTrack)
     } else {
       return super.keyPressed(keyBuf)
     }