tweaks: show "Space" and "Bsp" in the help text of the browser
These keys make more mnemonic sense for scrolling than F7 and F8. Also adjust the nanohelp syntax to cover the lone word "Space".master
parent
d249233ea7
commit
ac102a7516
|
@ -1106,10 +1106,11 @@ void shortcut_init(void)
|
||||||
add_to_sclist(MMAIN, "M-G", 0, do_gotolinecolumn_void, 0);
|
add_to_sclist(MMAIN, "M-G", 0, do_gotolinecolumn_void, 0);
|
||||||
add_to_sclist(MMAIN, "F13", 0, do_gotolinecolumn_void, 0);
|
add_to_sclist(MMAIN, "F13", 0, do_gotolinecolumn_void, 0);
|
||||||
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "^Y", 0, do_page_up, 0);
|
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "^Y", 0, do_page_up, 0);
|
||||||
|
add_to_sclist(MHELP|MBROWSER, "Bsp", KEY_BACKSPACE, do_page_up, 0);
|
||||||
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "F7", 0, do_page_up, 0);
|
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "F7", 0, do_page_up, 0);
|
||||||
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "PgUp", KEY_PPAGE, do_page_up, 0);
|
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "PgUp", KEY_PPAGE, do_page_up, 0);
|
||||||
add_to_sclist(MHELP|MBROWSER, "Bsp", KEY_BACKSPACE, do_page_up, 0);
|
|
||||||
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "^V", 0, do_page_down, 0);
|
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "^V", 0, do_page_down, 0);
|
||||||
|
add_to_sclist(MHELP|MBROWSER, "Space", 0x20, do_page_down, 0);
|
||||||
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "F8", 0, do_page_down, 0);
|
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "F8", 0, do_page_down, 0);
|
||||||
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "PgDn", KEY_NPAGE, do_page_down, 0);
|
add_to_sclist(MMAIN|MHELP|MBROWSER|MLINTER, "PgDn", KEY_NPAGE, do_page_down, 0);
|
||||||
add_to_sclist(MMAIN|MHELP, "M-\\", 0, to_first_line, 0);
|
add_to_sclist(MMAIN|MHELP, "M-\\", 0, to_first_line, 0);
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
syntax nanohelp
|
syntax nanohelp
|
||||||
|
|
||||||
# Key combos:
|
# Key combos:
|
||||||
color cyan "\^[]4-8A-Z^\_◀▶▲▼]" "[◀▶▲▼]" "(\^|M-)Space" "\<M-." "\<F1?[0-9]"
|
color cyan "\^[]4-8A-Z^\_◀▶▲▼]" "[◀▶▲▼]" "\<M-." "\<F1?[0-9]"
|
||||||
color cyan "\<(Tab|Sh-Tab|Enter|Ins|Del|Bsp|Up|Down|Left|Right|Home|End|PgUp|PgDn)\>"
|
color cyan "\<(Tab|Sh-Tab|Enter|Ins|Del|Space|Bsp|Up|Down|Left|Right|Home|End|PgUp|PgDn)\>"
|
||||||
|
|
||||||
# Quoted indicators:
|
# Quoted indicators:
|
||||||
color brightred "'(\^|M-)'"
|
color brightred "'(\^|M-)'"
|
||||||
|
|
Loading…
Reference in New Issue