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
Benno Schulenberg 2020-03-10 14:28:55 +01:00
parent 9d499c769b
commit cbbfebbc7a
1 changed files with 1 additions and 5 deletions

View File

@ -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;