mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
check_kbd_label_key: Allow only the Alt modifier.
Thus, pressing Ctrl-O in the "Terminal options" dialog no longer triggers the "~OK" button. One must instead press o, O, Alt-o, or Alt-O.
This commit is contained in:
parent
2eeb14f95c
commit
6108c3e109
@ -173,9 +173,9 @@ void in_term(struct terminal *);
|
|||||||
* TO DO: Change the event handlers to use unicode_fold_label_case()
|
* TO DO: Change the event handlers to use unicode_fold_label_case()
|
||||||
* instead. The code that extracts the hotkey from the label string
|
* instead. The code that extracts the hotkey from the label string
|
||||||
* will also have to be changed. */
|
* will also have to be changed. */
|
||||||
#define check_kbd_label_key(event) (get_kbd_key(event) > ' ' && get_kbd_key(event) <= 0x7F)
|
#define check_kbd_label_key(event) (get_kbd_key(event) > ' ' && get_kbd_key(event) <= 0x7F && (check_kbd_modifier(event, KBD_MOD_NONE) || check_kbd_modifier(event, KBD_MOD_ALT)))
|
||||||
#else /* !CONFIG_UTF_8 */
|
#else /* !CONFIG_UTF_8 */
|
||||||
#define check_kbd_label_key(event) (get_kbd_key(event) > ' ')
|
#define check_kbd_label_key(event) (get_kbd_key(event) > ' ' && (check_kbd_modifier(event, KBD_MOD_NONE) || check_kbd_modifier(event, KBD_MOD_ALT)))
|
||||||
#endif /* !CONFIG_UTF_8 */
|
#endif /* !CONFIG_UTF_8 */
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user