diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-06 14:15:45 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-06 14:15:45 +0000 |
commit | 4640627f6ec9f0c2bffe97f7a0d47835ef48f144 (patch) | |
tree | 507452a0f70724590a669e89cf65b1a725e3bc50 /key-string.c | |
parent | 83bf166a1fe7fd5f85b13dcddb009b310f5daa40 (diff) | |
download | rtmux-4640627f6ec9f0c2bffe97f7a0d47835ef48f144.tar.gz rtmux-4640627f6ec9f0c2bffe97f7a0d47835ef48f144.tar.bz2 rtmux-4640627f6ec9f0c2bffe97f7a0d47835ef48f144.zip |
Sync OpenBSD patchset 363:
Accept ^? for backspace as well as BSpace.
Diffstat (limited to 'key-string.c')
-rw-r--r-- | key-string.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/key-string.c b/key-string.c index 714cf6e9..75a31e0e 100644 --- a/key-string.c +++ b/key-string.c @@ -1,4 +1,4 @@ -/* $Id: key-string.c,v 1.23 2009-10-05 18:21:58 tcunha Exp $ */ +/* $Id: key-string.c,v 1.24 2009-10-06 14:15:45 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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) |