From 6cd6e18e29cc0846334a6f09aa4fb753c2f71a25 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 10 Jun 2008 22:57:05 +0200 Subject: [PATCH] [keygrabber] Add keys between XK_Home and XK_Begin Signed-off-by: Julien Danjou --- keygrabber.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/keygrabber.c b/keygrabber.c index 3890d0bc..ffee0f81 100644 --- a/keygrabber.c +++ b/keygrabber.c @@ -446,6 +446,7 @@ keysym_to_str(const xcb_keysym_t ksym) /* Try to convert to Latin-1, handling ctrl */ if(!((ksym >= XK_BackSpace && ksym <= XK_Clear) + || (ksym >= XK_Home && ksym <= XK_Begin) || ksym == XK_Return || ksym == XK_Escape || ksym == XK_KP_Space @@ -459,6 +460,24 @@ keysym_to_str(const xcb_keysym_t ksym) switch(ksym) { + case XK_Home: + return a_strdup("Home"); + case XK_Left: + return a_strdup("Left"); + case XK_Up: + return a_strdup("Up"); + case XK_Right: + return a_strdup("Right"); + case XK_Down: + return a_strdup("Down"); + case XK_Page_Up: + return a_strdup("Page_Up"); + case XK_Page_Down: + return a_strdup("Page_Down"); + case XK_End: + return a_strdup("End"); + case XK_Begin: + return a_strdup("Begin"); case XK_BackSpace: return a_strdup("BackSpace"); case XK_Return: