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

add_accesskey_to_string: Add the Alt modifier to the string, too.

The link information window will now display e.g. "(Alt-f)" rather
than just "(f)", becoming easier to understand.
This commit is contained in:
Kalle Olavi Niemitalo 2006-08-27 13:14:30 +03:00 committed by Kalle Olavi Niemitalo
parent cc6939b9f8
commit 86c9cb01ba

View File

@ -187,7 +187,9 @@ void add_keystroke_to_string(struct string *str, struct term_event_keyboard *kbd
* converted from unicode_val_T to that. \
* #ifdef CONFIG_UTF_8, the code is correct. */ \
kbd.key = accesskey; \
kbd.modifier = KBD_MOD_NONE; \
/* try_document_key() recognizes only Alt-accesskey \
* combos. */ \
kbd.modifier = KBD_MOD_ALT; \
add_keystroke_to_string(str, &kbd, 0); \
} while (0)