summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-05-14 14:21:07 +0000
committerTiago Cunha <tcunha@gmx.com>2010-05-14 14:21:07 +0000
commitd3dd6709bc4e2006e8aaf1e90bcca84212a30e13 (patch)
treec5260c7ecb30bff2e3e38ebc7e7aff6833e8370a /key-string.c
parent3cded44623f931182496549e8f8667c869d75c90 (diff)
Sync OpenBSD patchset 693:
Make C-] and other punctuation-based control key combinations work again. ok nicm
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/key-string.c b/key-string.c
index 270430cf..613c9821 100644
--- a/key-string.c
+++ b/key-string.c
@@ -1,4 +1,4 @@
-/* $Id: key-string.c,v 1.31 2010-04-23 20:33:08 nicm Exp $ */
+/* $Id: key-string.c,v 1.32 2010-05-14 14:21:07 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -154,7 +154,7 @@ key_string_lookup_string(const char *string)
if (modifiers & KEYC_CTRL) {
if (key >= 97 && key <= 122)
key -= 96;
- else if (key >= 65 && key <= 90)
+ else if (key >= 64 && key <= 95)
key -= 64;
else if (key == 32)
key = 0;