diff options
-rw-r--r-- | src/ui.cc | 6 | ||||
-rw-r--r-- | src/uicmd.cc | 2 | ||||
-rw-r--r-- | src/uicmd.hh | 2 |
3 files changed, 7 insertions, 3 deletions
@@ -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 == ',')) { diff --git a/src/uicmd.cc b/src/uicmd.cc index 9918fe04..15907f47 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -294,7 +294,7 @@ void a_UIcmd_close_bw(void *vbw) /* * Close all the browser windows */ -void a_UIcmd_close_all_bw() +void a_UIcmd_close_all_bw(void *) { BrowserWindow *bw; int choice = 0; diff --git a/src/uicmd.hh b/src/uicmd.hh index 469bcae4..2dbe8726 100644 --- a/src/uicmd.hh +++ b/src/uicmd.hh @@ -49,7 +49,7 @@ int *a_UIcmd_get_history(BrowserWindow *bw, int direction); void a_UIcmd_nav_jump(BrowserWindow *bw, int offset, int new_bw); void a_UIcmd_close_bw(void *vbw); -void a_UIcmd_close_all_bw(); +void a_UIcmd_close_all_bw(void *p); const char *a_UIcmd_get_save_dir(); void a_UIcmd_set_save_dir(const char *dir); |