diff options
-rw-r--r-- | console-client/xkb/parser.y | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/console-client/xkb/parser.y b/console-client/xkb/parser.y index 18c14544..7ce504e5 100644 --- a/console-client/xkb/parser.y +++ b/console-client/xkb/parser.y @@ -1061,7 +1061,13 @@ symbolssect: /* Returns a keysymbols, the numberic representation. */ symbolname: IDENTIFIER { $$ = XStringToKeysym ($1); } -| NUM { $$ = $1 + '0' } +| NUM + { + if (($1 >= 0) && ($1 < 10)) + $$ = $1 + '0'; + else + $$ = $1; + } | HEX { $$ = $1; } ; |