mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 02:23:15 +01:00
Accept ^? for backspace as well as BSpace.
This commit is contained in:
parent
35ca994ba2
commit
82efcc32ec
@ -121,6 +121,8 @@ key_string_lookup_string(const char *string)
|
|||||||
if (ptr[1] == '\0') {
|
if (ptr[1] == '\0') {
|
||||||
if (ptr[0] == 32)
|
if (ptr[0] == 32)
|
||||||
return (0);
|
return (0);
|
||||||
|
if (ptr[0] == 63)
|
||||||
|
return (KEYC_BSPACE);
|
||||||
if (ptr[0] >= 64 && ptr[0] <= 95)
|
if (ptr[0] >= 64 && ptr[0] <= 95)
|
||||||
return (ptr[0] - 64);
|
return (ptr[0] - 64);
|
||||||
if (ptr[0] >= 97 && ptr[0] <= 122)
|
if (ptr[0] >= 97 && ptr[0] <= 122)
|
||||||
|
Loading…
Reference in New Issue
Block a user