From 145e30126968f26fded87b28747784007a257111 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Sun, 23 Dec 2012 02:11:32 +0400 Subject: [PATCH] Fix keycodes (#325) --- src/keycode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1