1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

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.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-19 11:34:49 +00:00 committed by Miciah Dashiel Butler Masters
parent 588fa3ece8
commit 1bd498cde9

View File

@ -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"