From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eo9So-0007rw-AJ for qemu-devel@nongnu.org; Tue, 20 Feb 2018 10:04:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eo9Sj-0006Pq-DF for qemu-devel@nongnu.org; Tue, 20 Feb 2018 10:04:14 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39602 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eo9Sj-0006PU-9g for qemu-devel@nongnu.org; Tue, 20 Feb 2018 10:04:09 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 21F7E81AE88B for ; Tue, 20 Feb 2018 15:04:04 +0000 (UTC) From: Gerd Hoffmann Date: Tue, 20 Feb 2018 16:03:52 +0100 Message-Id: <20180220150357.324-1-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/5] keymap: support kbd layouts with multiple mappings for the same key. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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. 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 | 169 +++++++++++++++++++++++++++++--------------------------- ui/sdl.c | 6 +- ui/vnc.c | 9 ++- ui/trace-events | 2 +- 6 files changed, 111 insertions(+), 108 deletions(-) -- 2.9.3