bindings: allow exiting from the help viewer with F1, like with ^G

Signed-off-by: Brand Huntsman <alpha@qzx.com>
master
Brand Huntsman 2017-10-17 15:21:02 -06:00 committed by Benno Schulenberg
parent 57899550aa
commit 08b49534d5
1 changed files with 1 additions and 0 deletions

View File

@ -1344,6 +1344,7 @@ void shortcut_init(void)
#endif #endif
#ifdef ENABLE_HELP #ifdef ENABLE_HELP
add_to_sclist(MHELP, "^G", 0, do_exit, 0); add_to_sclist(MHELP, "^G", 0, do_exit, 0);
add_to_sclist(MHELP, "F1", 0, do_exit, 0);
add_to_sclist(MHELP, "Home", KEY_HOME, do_first_line, 0); add_to_sclist(MHELP, "Home", KEY_HOME, do_first_line, 0);
add_to_sclist(MHELP, "End", KEY_END, do_last_line, 0); add_to_sclist(MHELP, "End", KEY_END, do_last_line, 0);
#endif #endif