[keygrabber] Add keys between XK_Home and XK_Begin

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-10 22:57:05 +02:00
parent 7d79509df9
commit 6cd6e18e29

View file

@ -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: