summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-06 07:32:26 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-06 07:32:26 +0000
commit82efcc32ec4ccd12d5119942e62b8e11f9cb333b (patch)
tree1774aec36c794233af52ceadd70adef46befbaf9 /key-string.c
parent35ca994ba274a0f3f71e50b0a1aadf275d4441dc (diff)
Accept ^? for backspace as well as BSpace.
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/key-string.c b/key-string.c
index 55de32fe..45026d59 100644
--- a/key-string.c
+++ b/key-string.c
@@ -121,6 +121,8 @@ key_string_lookup_string(const char *string)
if (ptr[1] == '\0') {
if (ptr[0] == 32)
return (0);
+ if (ptr[0] == 63)
+ return (KEYC_BSPACE);
if (ptr[0] >= 64 && ptr[0] <= 95)
return (ptr[0] - 64);
if (ptr[0] >= 97 && ptr[0] <= 122)