From e13e4d57302cab12af7e43b431052cc3d2d32e9a Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 3 Jun 2018 19:14:35 -0300 Subject: Fix issue with playing tracks directly from queue --- todo.txt | 5 +++++ ui.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/todo.txt b/todo.txt index 4b8f1e8..42a5058 100644 --- a/todo.txt +++ b/todo.txt @@ -17,3 +17,8 @@ TODO: Scroll to the selected track once it starts playing when selected from TODO: process.on('SIGWINCH', () => ...) -- detect terminal resize!! (Done!) + +TODO: Pressing enter in the queue seems to not be doing the right thing? + It should NOT move the selected item anywhere in the queue; it should + just select and play that track. + (Done!) diff --git a/ui.js b/ui.js index affe312..02c77bb 100644 --- a/ui.js +++ b/ui.js @@ -53,9 +53,9 @@ class AppElement extends FocusElement { this.paneRight.addChild(this.queueListingElement) this.form.addInput(this.queueListingElement, false) - this.queueListingElement.on('select (enter)', item => this.playGrouplikeItem(item)) + this.queueListingElement.on('select (enter)', item => this.playGrouplikeItem(item, false)) this.queueListingElement.on('select (space)', item => this.handleSpacePressed( - () => this.playGrouplikeItem(item))) + () => this.playGrouplikeItem(item, false))) this.playbackPane = new Pane() this.addChild(this.playbackPane) -- cgit 1.3.0-6-gf8a5