summaryrefslogtreecommitdiff
path: root/keysym2ucs.c
diff options
context:
space:
mode:
Diffstat (limited to 'keysym2ucs.c')
-rw-r--r--keysym2ucs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keysym2ucs.c b/keysym2ucs.c
index 3da51ed..9eecf6b 100644
--- a/keysym2ucs.c
+++ b/keysym2ucs.c
@@ -825,6 +825,10 @@ long keysym2ucs(xcb_keysym_t keysym)
(keysym >= 0x00a0 && keysym <= 0x00ff))
return keysym;
+ /* check for numpad keys (direct mapping) */
+ if ((keysym >= 0xff80 && keysym <= 0xffb9))
+ return keysym & 0x7F;
+
/* also check for directly encoded 24-bit UCS characters */
if ((keysym & 0xff000000) == 0x01000000)
return keysym & 0x00ffffff;