Commit 0fc8e0ec7f42fb79763b875edea2f50c0691c1f4

Authored by Gerd Hoffmann
Committed by Anthony Liguori
1 parent e6f4afe0

vnc: windup keypad keys for qemu console emulation

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing 1 changed file with 9 additions and 0 deletions
@@ -1345,30 +1345,39 @@ static void do_key_event(VncState *vs, int down, int keycode, int sym) @@ -1345,30 +1345,39 @@ static void do_key_event(VncState *vs, int down, int keycode, int sym)
1345 case 0xb8: /* Right ALT */ 1345 case 0xb8: /* Right ALT */
1346 break; 1346 break;
1347 case 0xc8: 1347 case 0xc8:
  1348 + case 0x48:
1348 kbd_put_keysym(QEMU_KEY_UP); 1349 kbd_put_keysym(QEMU_KEY_UP);
1349 break; 1350 break;
1350 case 0xd0: 1351 case 0xd0:
  1352 + case 0x50:
1351 kbd_put_keysym(QEMU_KEY_DOWN); 1353 kbd_put_keysym(QEMU_KEY_DOWN);
1352 break; 1354 break;
1353 case 0xcb: 1355 case 0xcb:
  1356 + case 0x4b:
1354 kbd_put_keysym(QEMU_KEY_LEFT); 1357 kbd_put_keysym(QEMU_KEY_LEFT);
1355 break; 1358 break;
1356 case 0xcd: 1359 case 0xcd:
  1360 + case 0x4d:
1357 kbd_put_keysym(QEMU_KEY_RIGHT); 1361 kbd_put_keysym(QEMU_KEY_RIGHT);
1358 break; 1362 break;
1359 case 0xd3: 1363 case 0xd3:
  1364 + case 0x53:
1360 kbd_put_keysym(QEMU_KEY_DELETE); 1365 kbd_put_keysym(QEMU_KEY_DELETE);
1361 break; 1366 break;
1362 case 0xc7: 1367 case 0xc7:
  1368 + case 0x47:
1363 kbd_put_keysym(QEMU_KEY_HOME); 1369 kbd_put_keysym(QEMU_KEY_HOME);
1364 break; 1370 break;
1365 case 0xcf: 1371 case 0xcf:
  1372 + case 0x4f:
1366 kbd_put_keysym(QEMU_KEY_END); 1373 kbd_put_keysym(QEMU_KEY_END);
1367 break; 1374 break;
1368 case 0xc9: 1375 case 0xc9:
  1376 + case 0x49:
1369 kbd_put_keysym(QEMU_KEY_PAGEUP); 1377 kbd_put_keysym(QEMU_KEY_PAGEUP);
1370 break; 1378 break;
1371 case 0xd1: 1379 case 0xd1:
  1380 + case 0x51:
1372 kbd_put_keysym(QEMU_KEY_PAGEDOWN); 1381 kbd_put_keysym(QEMU_KEY_PAGEDOWN);
1373 break; 1382 break;
1374 default: 1383 default: