From 4238f9b72c46ac45fb5481921844641927524a14 Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 21 Dec 2018 11:37:05 -0400 Subject: Make cursor follow selection in queue listing This was already half-done, but the new behavior in this commit feels quite a bit nicer. (Specifically if you use shift-up/down (or n/p) while the queue is selected, the cursor will move to the new selection if it was already on the old selection, whereas before it would never follow when the queue was selected.) --- ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui.js b/ui.js index 0604873..3a7f70d 100644 --- a/ui.js +++ b/ui.js @@ -720,7 +720,8 @@ class AppElement extends FocusElement { this.recordStore.getRecord(item).playing = true this.playingTrack = item this.playbackInfoElement.updateTrack(item) - if (!this.queueListingElement.isSelected) { + + if (this.queueListingElement.currentItem === oldTrack) { this.queueListingElement.selectAndShow(item) } -- cgit 1.3.0-6-gf8a5