« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/play.js')
-rwxr-xr-xsrc/play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/play.js b/src/play.js
index ac6a232..54d1f4e 100755
--- a/src/play.js
+++ b/src/play.js
@@ -173,7 +173,9 @@ async function main(args) {
       keybindings.splice(0)
     }
 
-    keybindings.push(...openedKeybindings)
+    // Place new keybindings at the top of the array, so that they are
+    // prioritized over old ones.
+    keybindings.unshift(...openedKeybindings)
   }
 
   function requiresOpenPlaylist() {