mirror of git://git.sv.gnu.org/nano.git
bindings: in the tiny version, bind M-6 only in main, not at the prompts
This prevents M-6 from unexpectedly exiting from the prompt and then copying a line in the edit window.
This commit is contained in:
parent
b84f6fc15f
commit
a0eebf20db
|
@ -1227,14 +1227,16 @@ void shortcut_init(void)
|
||||||
add_to_sclist(MMAIN, "^\\", 0, do_replace, 0);
|
add_to_sclist(MMAIN, "^\\", 0, do_replace, 0);
|
||||||
add_to_sclist(MMAIN, "M-R", 0, do_replace, 0);
|
add_to_sclist(MMAIN, "M-R", 0, do_replace, 0);
|
||||||
add_to_sclist(MMOST, "^K", 0, cut_text, 0);
|
add_to_sclist(MMOST, "^K", 0, cut_text, 0);
|
||||||
add_to_sclist(MMOST, "M-6", 0, copy_text, 0);
|
|
||||||
add_to_sclist(MMOST, "M-^", 0, copy_text, 0);
|
|
||||||
#ifdef NANO_TINY
|
#ifdef NANO_TINY
|
||||||
|
add_to_sclist(MMAIN, "M-6", 0, copy_text, 0);
|
||||||
|
add_to_sclist(MMAIN, "M-^", 0, copy_text, 0);
|
||||||
add_to_sclist(MMAIN, "^U", 0, paste_text, 0);
|
add_to_sclist(MMAIN, "^U", 0, paste_text, 0);
|
||||||
#ifdef ENABLE_SPELLER
|
#ifdef ENABLE_SPELLER
|
||||||
add_to_sclist(MMAIN, ISSET(MODERN_BINDINGS) ? "^E" : "^T", 0, do_spell, 0);
|
add_to_sclist(MMAIN, ISSET(MODERN_BINDINGS) ? "^E" : "^T", 0, do_spell, 0);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
add_to_sclist(MMOST, "M-6", 0, copy_text, 0);
|
||||||
|
add_to_sclist(MMOST, "M-^", 0, copy_text, 0);
|
||||||
add_to_sclist(MMOST, "^U", 0, paste_text, 0);
|
add_to_sclist(MMOST, "^U", 0, paste_text, 0);
|
||||||
add_to_sclist(MMAIN, ISSET(MODERN_BINDINGS) ? "^E" : "^T", 0, do_execute, 0);
|
add_to_sclist(MMAIN, ISSET(MODERN_BINDINGS) ? "^E" : "^T", 0, do_execute, 0);
|
||||||
#ifdef ENABLE_SPELLER
|
#ifdef ENABLE_SPELLER
|
||||||
|
|
Loading…
Reference in New Issue