From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dajLI-0003HL-0T for qemu-devel@nongnu.org; Thu, 27 Jul 2017 10:00:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dajLC-0001qb-3n for qemu-devel@nongnu.org; Thu, 27 Jul 2017 10:00:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43624) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dajLB-0001nx-TS for qemu-devel@nongnu.org; Thu, 27 Jul 2017 10:00:38 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 47CDD32D323 for ; Thu, 27 Jul 2017 14:00:34 +0000 (UTC) From: Gerd Hoffmann Date: Thu, 27 Jul 2017 16:00:19 +0200 Message-Id: <20170727140025.392-2-kraxel@redhat.com> In-Reply-To: <20170727140025.392-1-kraxel@redhat.com> References: <20170727140025.392-1-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 1/7] ui: add next and prior keysyms List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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 Reviewed-by: Eric Blake Message-id: 20170726152918.11995-2-kraxel@redhat.com --- ui/curses_keys.h | 2 ++ ui/vnc_keysym.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ui/curses_keys.h b/ui/curses_keys.h index e39ef9e718..e9195a1671 100644 --- a/ui/curses_keys.h +++ b/ui/curses_keys.h @@ -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 }, diff --git a/ui/vnc_keysym.h b/ui/vnc_keysym.h index 7fa2bc1f1c..e8a2ec73c5 100644 --- a/ui/vnc_keysym.h +++ b/ui/vnc_keysym.h @@ -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 */ -- 2.9.3