summaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 6c848cad..f5a5da17 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -479,7 +479,7 @@ static void menubar_close_bw(void *vbw)
if (bw)
a_UIcmd_close_bw(bw);
else
- a_UIcmd_close_all_bw();
+ a_UIcmd_close_all_bw(NULL);
a_Timeout_remove();
}
@@ -800,6 +800,10 @@ int UI::handle(int event)
panelmode_cb_i();
ret = 1;
}
+ } else if (modifier == ALT) {
+ if (k == 'q' && event_key_state(LeftAltKey)) {
+ a_Timeout_add(0.0, a_UIcmd_close_all_bw, NULL);
+ }
} else {
// Back and Forward navigation shortcuts
if (modifier == 0 && (k == BackSpaceKey || k == ',')) {