aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keycode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keycode.cpp b/src/keycode.cpp
index cdf3c6062..9aa9d300d 100644
--- a/src/keycode.cpp
+++ b/src/keycode.cpp
@@ -260,7 +260,7 @@ KeyPress::KeyPress(const char *name)
try {
Key = keyname_to_keycode(name);
m_name = name;
- if (strlen(name) > 8) {
+ if (strlen(name) > 8 && strncmp(name, "KEY_KEY_", 8) == 0) {
int chars_read = mbtowc(&Char, name + 8, 1);
assert (chars_read == 1 && "unexpected multibyte character");
} else