« get me outta code hell

Make shift-up/down still move on non-item inputs - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-08-25 17:34:13 -0300
committerFlorrie <towerofnix@gmail.com>2019-08-25 17:35:06 -0300
commit7bbda09051f06b2bed7d439143960a0a88199d10 (patch)
tree7bdc305efc81625be983d13895ddbb203492f4b1
parent5263e71bcc592b4f3f5b061559ee7a49c874db94 (diff)
Make shift-up/down still move on non-item inputs
-rw-r--r--ui.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 61e8db0..f382cb2 100644
--- a/ui.js
+++ b/ui.js
@@ -1570,6 +1570,7 @@ class GrouplikeListingForm extends ListScrollForm {
     if (!this.keyboardDragDirection) {
       const item = getItem()
       if (!item) {
+        move()
         return
       }
       this.keyboardDragDirection = direction
@@ -1592,6 +1593,7 @@ class GrouplikeListingForm extends ListScrollForm {
     } else {
       const item = getItem()
       if (!item) {
+        move()
         return
       }
       this.dragLeftRange(item)