From 2023095d8e63e50fb48f28d1d5643591eec19124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 17 May 2017 22:10:24 +0200 Subject: [PATCH] XKB: Fix Unicode lookup regression This fixes a sorting error introduced by 8597002a177beb56db09cd1a9fca0025687dc706. The array must be sorted for the binary search. --- src/xkb_unicode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xkb_unicode.c b/src/xkb_unicode.c index d095405e..a6cb0e29 100644 --- a/src/xkb_unicode.c +++ b/src/xkb_unicode.c @@ -881,7 +881,6 @@ static const struct codepair { // { 0xfe93, 0x0338 }, // XK_dead_longsolidusoverlay // Numeric keypad with numlock on { 0xff80 /*XKB_KEY_KP_Space*/, ' ' }, - { 0xffbd /*XKB_KEY_KP_Equal*/, '=' }, { 0xffaa /*XKB_KEY_KP_Multiply*/, '*' }, { 0xffab /*XKB_KEY_KP_Add*/, '+' }, { 0xffac /*XKB_KEY_KP_Separator*/, ',' }, @@ -897,7 +896,8 @@ static const struct codepair { { 0xffb6 /*XKB_KEY_KP_6*/, 0x0036 }, { 0xffb7 /*XKB_KEY_KP_7*/, 0x0037 }, { 0xffb8 /*XKB_KEY_KP_8*/, 0x0038 }, - { 0xffb9 /*XKB_KEY_KP_9*/, 0x0039 } + { 0xffb9 /*XKB_KEY_KP_9*/, 0x0039 }, + { 0xffbd /*XKB_KEY_KP_Equal*/, '=' } };