From 97256073b1a51ed0deb0bac7d4b5d88a90cc2939 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 29 Apr 2014 13:19:32 +0200 Subject: input: sparc32 kbd: fix some key mappings Reported-by: Olivier Danet Signed-off-by: Gerd Hoffmann --- hw/char/escc.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'hw/char/escc.c') diff --git a/hw/char/escc.c b/hw/char/escc.c index 823fe8dc68..d7dff70b06 100644 --- a/hw/char/escc.c +++ b/hw/char/escc.c @@ -790,7 +790,7 @@ static const uint8_t qcode_to_keycode[Q_KEY_CODE_MAX] = { [Q_KEY_CODE_F10] = 7, [Q_KEY_CODE_NUM_LOCK] = 98, [Q_KEY_CODE_SCROLL_LOCK] = 23, - [Q_KEY_CODE_KP_DIVIDE] = 109, + [Q_KEY_CODE_KP_DIVIDE] = 46, [Q_KEY_CODE_KP_MULTIPLY] = 47, [Q_KEY_CODE_KP_SUBTRACT] = 71, [Q_KEY_CODE_KP_ADD] = 125, @@ -809,31 +809,33 @@ static const uint8_t qcode_to_keycode[Q_KEY_CODE_MAX] = { [Q_KEY_CODE_LESS] = 124, [Q_KEY_CODE_F11] = 9, [Q_KEY_CODE_F12] = 11, - [Q_KEY_CODE_HOME] = 68, - [Q_KEY_CODE_PGUP] = 70, - [Q_KEY_CODE_PGDN] = 114, - [Q_KEY_CODE_END] = 112, - [Q_KEY_CODE_LEFT] = 91, - [Q_KEY_CODE_UP] = 69, - [Q_KEY_CODE_DOWN] = 113, - [Q_KEY_CODE_RIGHT] = 93, - [Q_KEY_CODE_INSERT] = 94, - [Q_KEY_CODE_DELETE] = 50, + [Q_KEY_CODE_HOME] = 52, + [Q_KEY_CODE_PGUP] = 96, + [Q_KEY_CODE_PGDN] = 123, + [Q_KEY_CODE_END] = 74, + [Q_KEY_CODE_LEFT] = 24, + [Q_KEY_CODE_UP] = 20, + [Q_KEY_CODE_DOWN] = 27, + [Q_KEY_CODE_RIGHT] = 28, + [Q_KEY_CODE_INSERT] = 44, + [Q_KEY_CODE_DELETE] = 66, [Q_KEY_CODE_STOP] = 1, [Q_KEY_CODE_AGAIN] = 3, [Q_KEY_CODE_PROPS] = 25, [Q_KEY_CODE_UNDO] = 26, [Q_KEY_CODE_FRONT] = 49, - [Q_KEY_CODE_COPY] = 52, + [Q_KEY_CODE_COPY] = 51, [Q_KEY_CODE_OPEN] = 72, [Q_KEY_CODE_PASTE] = 73, - [Q_KEY_CODE_FIND] = 97, - [Q_KEY_CODE_CUT] = 99, + [Q_KEY_CODE_FIND] = 95, + [Q_KEY_CODE_CUT] = 97, [Q_KEY_CODE_LF] = 111, [Q_KEY_CODE_HELP] = 118, [Q_KEY_CODE_META_L] = 120, [Q_KEY_CODE_META_R] = 122, [Q_KEY_CODE_COMPOSE] = 67, + [Q_KEY_CODE_PRINT] = 22, + [Q_KEY_CODE_SYSRQ] = 21, }; static void sunkbd_handle_event(DeviceState *dev, QemuConsole *src, -- cgit v1.2.3