Commit 0fc8e0ec7f42fb79763b875edea2f50c0691c1f4
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
vnc.c
... | ... | @@ -1345,30 +1345,39 @@ static void do_key_event(VncState *vs, int down, int keycode, int sym) |
1345 | 1345 | case 0xb8: /* Right ALT */ |
1346 | 1346 | break; |
1347 | 1347 | case 0xc8: |
1348 | + case 0x48: | |
1348 | 1349 | kbd_put_keysym(QEMU_KEY_UP); |
1349 | 1350 | break; |
1350 | 1351 | case 0xd0: |
1352 | + case 0x50: | |
1351 | 1353 | kbd_put_keysym(QEMU_KEY_DOWN); |
1352 | 1354 | break; |
1353 | 1355 | case 0xcb: |
1356 | + case 0x4b: | |
1354 | 1357 | kbd_put_keysym(QEMU_KEY_LEFT); |
1355 | 1358 | break; |
1356 | 1359 | case 0xcd: |
1360 | + case 0x4d: | |
1357 | 1361 | kbd_put_keysym(QEMU_KEY_RIGHT); |
1358 | 1362 | break; |
1359 | 1363 | case 0xd3: |
1364 | + case 0x53: | |
1360 | 1365 | kbd_put_keysym(QEMU_KEY_DELETE); |
1361 | 1366 | break; |
1362 | 1367 | case 0xc7: |
1368 | + case 0x47: | |
1363 | 1369 | kbd_put_keysym(QEMU_KEY_HOME); |
1364 | 1370 | break; |
1365 | 1371 | case 0xcf: |
1372 | + case 0x4f: | |
1366 | 1373 | kbd_put_keysym(QEMU_KEY_END); |
1367 | 1374 | break; |
1368 | 1375 | case 0xc9: |
1376 | + case 0x49: | |
1369 | 1377 | kbd_put_keysym(QEMU_KEY_PAGEUP); |
1370 | 1378 | break; |
1371 | 1379 | case 0xd1: |
1380 | + case 0x51: | |
1372 | 1381 | kbd_put_keysym(QEMU_KEY_PAGEDOWN); |
1373 | 1382 | break; |
1374 | 1383 | default: | ... | ... |