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>.master
parent
9d499c769b
commit
cbbfebbc7a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue