The reverse keymap (-k $map) code has problems dealing with keymaps where multiple key combinations can create the same keysym, because it can store a single keycode per keysym only. This series fixes it and does some cleanups along the way.
v2: rebase, codestyle fixes. v3: use GINT_TO_POINTER Gerd Hoffmann (5): keymap: make struct kbd_layout_t private to ui/keymaps.c keymap: use glib hash for kbd_layout_t keymap: numpad keysyms and keycodes are fixed keymap: record multiple keysym -> keycode mappings keymap: consider modifier state when picking a mapping ui/keymaps.h | 30 +++-------- ui/curses.c | 3 +- ui/keymaps.c | 163 +++++++++++++++++++++++++++++--------------------------- ui/sdl.c | 6 ++- ui/vnc.c | 9 +++- ui/trace-events | 2 +- 6 files changed, 105 insertions(+), 108 deletions(-) -- 2.9.3