]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ui: add next and prior keysyms
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 26 Jul 2017 15:29:14 +0000 (17:29 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 27 Jul 2017 12:23:09 +0000 (14:23 +0200)
Page-up and Page-down were renamed.  Add the names to the keysym list
so we can parse both old and new names.  The keypad versions are already
present in the vnc map.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20170726152918.11995-2-kraxel@redhat.com

ui/curses_keys.h
ui/vnc_keysym.h

index e39ef9e718c92e8ed7affbab51540be14c29f6e1..e9195a167192dca1cfc9cfb94d95527829b166fb 100644 (file)
@@ -480,7 +480,9 @@ static const name2keysym_t name2keysym[] = {
     { "Left", KEY_LEFT },
     { "Up", KEY_UP },
     { "Down", KEY_DOWN },
+    { "Next", KEY_NPAGE },
     { "Page_Down", KEY_NPAGE },
+    { "Prior", KEY_PPAGE },
     { "Page_Up", KEY_PPAGE },
     { "Insert", KEY_IC },
     { "Delete", KEY_DC },
index 7fa2bc1f1cbb5fb5116fef1986927bb0a2e397f9..e8a2ec73c52fc218e6baca87cb9a10c43490aa6d 100644 (file)
@@ -254,7 +254,9 @@ static const name2keysym_t name2keysym[]={
 {"Left", 0xff51},      /* XK_Left */
 {"Up", 0xff52},        /* XK_Up */
 {"Down", 0xff54},      /* XK_Down */
+{"Next", 0xff56},
 {"Page_Down", 0xff56}, /* XK_Page_Down */
+{"Prior", 0xff55},
 {"Page_Up", 0xff55},   /* XK_Page_Up */
 {"Insert", 0xff63},    /* XK_Insert */
 {"Delete", 0xffff},    /* XK_Delete */