From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brP3v-00005y-FR for qemu-devel@nongnu.org; Tue, 04 Oct 2016 08:43:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brP3q-0006Mc-6V for qemu-devel@nongnu.org; Tue, 04 Oct 2016 08:43:10 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:47186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brP3q-0006Cy-0S for qemu-devel@nongnu.org; Tue, 04 Oct 2016 08:43:06 -0400 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1brP3k-0005lI-Gx for qemu-devel@nongnu.org; Tue, 04 Oct 2016 13:43:00 +0100 From: Peter Maydell Date: Tue, 4 Oct 2016 13:42:37 +0100 Message-Id: <1475584975-25099-10-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1475584975-25099-1-git-send-email-peter.maydell@linaro.org> References: <1475584975-25099-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 09/27] mainstone: Fix incorrect key mapping for Enter key. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Vijay Kumar B According to the manual the (5, 5) corresponds to backspace key, and not Enter key. Linux kernel maps (5, 4) to the enter key. Fixing it up to match the mapping in the Linux kernel. Signed-off-by: Vijay Kumar B. Reviewed-by: Deepak S. Message-id: 1475063033-8176-2-git-send-email-vijaykumar@zilogic.com Signed-off-by: Peter Maydell --- hw/arm/mainstone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/mainstone.c b/hw/arm/mainstone.c index 454acc5..e81b878 100644 --- a/hw/arm/mainstone.c +++ b/hw/arm/mainstone.c @@ -88,7 +88,7 @@ static const struct keymap map[0xE0] = { * Matrix position {5,4} and other keys are missing here. * TODO: Compare with Linux code and test real hardware. */ - [0x1c] = {5,5}, /* enter (TODO: might be wrong) */ + [0x1c] = {5,4}, /* enter */ [0xc8] = {6,0}, /* up */ [0xd0] = {6,1}, /* down */ [0xcb] = {6,2}, /* left */ -- 2.7.4