From 6d454e06570b727221eff348408db51033957367 Mon Sep 17 00:00:00 2001 From: Florrie Date: Wed, 8 Nov 2017 12:18:57 -0400 Subject: Only run 'top' keybinding for a specific combo This lets custom keybinding files partially overwrite pre- existing ketbindings. --- src/play.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/play.js') 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() { -- cgit 1.3.0-6-gf8a5