summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-common/core/keyboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c
index bfcba6d0..01dd43c9 100644
--- a/src/fe-common/core/keyboard.c
+++ b/src/fe-common/core/keyboard.c
@@ -263,7 +263,8 @@ static int expand_key(const char *key, GSList **out)
start = NULL; last_hyphen = TRUE;
for (; *key != '\0'; key++) {
if (start != NULL) {
- if (isalnum(*key) || *key == '_') {
+ if (!isdigit(*start) &&
+ (isalnum(*key) || *key == '_')) {
/* key combo continues */
continue;
}