nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH] bindings: no longer bind F13 and F14 and F15


From: Benno Schulenberg
Subject: [Nano-devel] [PATCH] bindings: no longer bind F13 and F14 and F15
Date: Thu, 18 Oct 2018 20:59:17 +0200

The bindings for F1 to F12 are there for compatabililty 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.
---
 src/global.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/global.c b/src/global.c
index 20b257a8..0fefa50a 100644
--- a/src/global.c
+++ b/src/global.c
@@ -1365,14 +1365,6 @@ void shortcut_init(void)
 #ifdef ENABLE_SPELLER
        add_to_sclist(MMAIN, "F12", 0, do_spell, 0);
 #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
        print_sclist();
-- 
2.19.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]