Accept ^? for backspace as well as BSpace.

This commit is contained in:
Nicholas Marriott 2009-10-06 07:32:26 +00:00
parent 35ca994ba2
commit 82efcc32ec

View File

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