From 1bd498cde9c972527a4c8b8b7a7050727f60b61d Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Mon, 19 Jun 2006 11:34:49 +0000 Subject: [PATCH] Fix accesskeys so that they work when priority is 0 Don't try the key as an accesskey if a menu was opened, whether it was just the main menu or whether it was a submenu of the menu menu (we would try the key as an accesskey in the latter case). In send_kbd_event, replace the KBD_MOD_ALT modifier when trying the key as an accesskey rather than when we don't. --- src/viewer/text/view.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/viewer/text/view.c b/src/viewer/text/view.c index 9bc533753..bad879c10 100644 --- a/src/viewer/text/view.c +++ b/src/viewer/text/view.c @@ -1173,10 +1173,10 @@ quit: if (ses->tab->term->windows.next == win) { deselect_mainmenu(win->term, win->data); print_screen_status(ses); - get_kbd_modifier(ev) |= KBD_MOD_ALT; - - return NULL; } + if (ses->tab != ses->tab->term->windows.next) + return NULL; + get_kbd_modifier(ev) |= KBD_MOD_ALT; if (doc_view && get_opt_int("document.browse.accesskey"