bindings: no longer bind F13 and F14 and F15

The bindings for F1 to F12 are there for compatibility with Pico.
But Pico does not know anything about F13 to F16; for unknown reasons
they were added to nano.  They seem hardly useful: normal keyboards
do not have the F13 to F16 keys, and very few people know that they
can "produce" those keys by holding Shift with F1 to F4.  But typing
Shift plus F1 to F4 are just as "hard" as, for example, M-G and M-W,
so why anyone would want to use the first ones...?  Especially since
many other functions of nano can only be accessed through Meta and
Control combinations.

Furthermore, F13 to F15 haven't been shown in the help texts since
version 2.3.3, so for more than four years no new user will have
learned about those keystrokes.

The rare user who wants these strange bindings can easily make them
herself.
This commit is contained in:
Benno Schulenberg 2018-10-15 21:00:02 +02:00
parent e901387b72
commit 95dd873205

View File

@ -1365,14 +1365,6 @@ void shortcut_init(void)
#ifdef ENABLE_SPELLER #ifdef ENABLE_SPELLER
add_to_sclist(MMAIN, "F12", 0, do_spell, 0); add_to_sclist(MMAIN, "F12", 0, do_spell, 0);
#endif #endif
add_to_sclist(MMAIN, "F13", 0, do_gotolinecolumn_void, 0);
#ifdef ENABLE_BROWSER
add_to_sclist(MBROWSER, "F13", 0, goto_dir_void, 0);
#endif
add_to_sclist(MMAIN, "F14", 0, do_replace, 0);
#ifndef NANO_TINY
add_to_sclist(MMAIN, "F15", 0, do_mark, 0);
#endif
#ifdef DEBUG #ifdef DEBUG
print_sclist(); print_sclist();