From c8ea64976f562008e096b8b893319de993b3ba49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 17 May 2017 22:12:26 +0200 Subject: [PATCH] XKB: Workaround for Num Lock Related to #983. --- src/xkb_unicode.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/xkb_unicode.c b/src/xkb_unicode.c index a6cb0e29..fdd3db71 100644 --- a/src/xkb_unicode.c +++ b/src/xkb_unicode.c @@ -881,6 +881,16 @@ static const struct codepair { // { 0xfe93, 0x0338 }, // XK_dead_longsolidusoverlay // Numeric keypad with numlock on { 0xff80 /*XKB_KEY_KP_Space*/, ' ' }, + { 0xff95 /*XKB_KEY_KP_7*/, 0x0037 }, + { 0xff96 /*XKB_KEY_KP_4*/, 0x0034 }, + { 0xff97 /*XKB_KEY_KP_8*/, 0x0038 }, + { 0xff98 /*XKB_KEY_KP_6*/, 0x0036 }, + { 0xff99 /*XKB_KEY_KP_2*/, 0x0032 }, + { 0xff9a /*XKB_KEY_KP_9*/, 0x0039 }, + { 0xff9b /*XKB_KEY_KP_3*/, 0x0033 }, + { 0xff9c /*XKB_KEY_KP_1*/, 0x0031 }, + { 0xff9d /*XKB_KEY_KP_5*/, 0x0035 }, + { 0xff9e /*XKB_KEY_KP_0*/, 0x0030 }, { 0xffaa /*XKB_KEY_KP_Multiply*/, '*' }, { 0xffab /*XKB_KEY_KP_Add*/, '+' }, { 0xffac /*XKB_KEY_KP_Separator*/, ',' },