commit cbbfebbc7aae861bbbe7f5c9a6ab018beed8195a
parent 9d499c769bf172c0e7fdac4028a8a7649bec9f6c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 10 Mar 2020 14:28:55 +0100
bindings: remove the translation of ^H to Backspace on the BSDs
This avoids an unintended rebinding of the <Backspace> key
on terminal emulators.
This fixes https://savannah.gnu.org/bugs/?57981.
Reported-by: Ciprian Tomoiaga <ciprian.tomoiaga@gmail.com>.
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -521,13 +521,9 @@ int keycode_from_string(const char *keystring)
if (keystring[2] == '\0') {
if (keystring[1] == '/')
return 31;
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
- if (keystring[1] == 'H')
- return KEY_BACKSPACE;
-#endif
if (keystring[1] <= '_')
return keystring[1] - 64;
- else if (keystring[1] == '`')
+ if (keystring[1] == '`')
return 0;
else
return -1;