From 4e6c0ae7586bd69b349268b38b37bed7ec3acd51 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 31 Mar 2019 13:23:25 +0200 Subject: [PATCH] input: recognize the ^W^Y and ^W^V legacy keystrokes again The keystrokes are recognized and acted upon, but they are not visible in the menus nor in the help text, and they cannot be rebound. They are just there to not frustrate the muscle memory of long-time users. --- src/global.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/global.c b/src/global.c index 3dd07882..25a6b5f9 100644 --- a/src/global.c +++ b/src/global.c @@ -1306,9 +1306,13 @@ void shortcut_init(void) #ifdef ENABLE_JUSTIFY add_to_sclist(MGOTOLINE, "^W", 0, do_para_begin_void, 0); add_to_sclist(MGOTOLINE, "^O", 0, do_para_end_void, 0); +// add_to_sclist(MWHEREIS, "^W", 0, do_para_begin_void, 0); +// add_to_sclist(MWHEREIS, "^O", 0, do_para_end_void, 0); #endif add_to_sclist(MGOTOLINE, "^Y", 0, to_first_line, 0); add_to_sclist(MGOTOLINE, "^V", 0, to_last_line, 0); + add_to_sclist(MWHEREIS, "^Y", 0, to_first_line, 0); + add_to_sclist(MWHEREIS, "^V", 0, to_last_line, 0); #ifdef ENABLE_BROWSER add_to_sclist(MWHEREISFILE, "^Y", 0, to_first_file, 0); add_to_sclist(MWHEREISFILE, "^V", 0, to_last_file, 0); -- 2.20.1