From 1dcca8d02abab0f3ad511ed14a45c0fa67e8b6ca Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 28 Dec 2018 20:18:50 -0400 Subject: (Ctrl+L) to select playing track in queue --- README.md | 3 ++- ui.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 379db82..6bd33d3 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ You're also welcome to share any ideas, suggestions, and questions through there * Ctrl+C - exit * Up and Down - select previous or next item in a listing * Tab and Shift+Tab - switch between UI elements -* g and G - move to the first and last item in a listing +* g and G (shift+G) - move to the first and last item in a listing * 1 - focus the main track/group listing * 2 - focus the queue listing * Enter - play the selected track @@ -52,6 +52,7 @@ You're also welcome to share any ideas, suggestions, and questions through there * s - shuffle the queue * c - clear the queue * x - remove the selected track from the queue + * Ctrl+L - jump to the track that's currently playing * **In path displays:** (Path displays are the things that show below the main and queue listings. They show the path of groups to the selected item in the listing.) * Enter or Space - view the selected item in the main listing * Left and Right - navigate the path display 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) } -- cgit 1.3.0-6-gf8a5