« get me outta code hell

Don't stop playback when defocusing menubar - 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-07-30 21:51:18 -0300
committerFlorrie <towerofnix@gmail.com>2019-07-30 21:51:18 -0300
commit82984d156f4481dd1c7f76e7a41fb260d3944fd0 (patch)
tree7341b591f5cb76b686b05256fbce403b9cc4edb2
parent0e9b316165f8b6585d5822a8a3b8199b7ec3e671 (diff)
Don't stop playback when defocusing menubar
-rw-r--r--ui.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 25cc0e1..3b38f58 100644
--- a/ui.js
+++ b/ui.js
@@ -823,6 +823,7 @@ class AppElement extends FocusElement {
 
     if ((telc.isEscape(keyBuf) || telc.isBackspace(keyBuf)) && this.menubar.isSelected) {
       this.menubar.restoreSelection()
+      return
     }
 
     if (this.config.canControlPlayback) {