Launcher: Add Control-p/n to manage historic (vim-like) requested by Bram

This commit is contained in:
Martin Duquesnoy
2010-04-06 21:15:56 +02:00
parent 22b405cba8
commit e920b99951

View File

@@ -91,8 +91,14 @@ launcher_execute(Launcher *launcher)
/* Check Ctrl-c / Ctrl-d */
if(ev.xkey.state & ControlMask)
{
if(ks == XK_c || ks == XK_d)
ks = XK_Escape;
else if(ks == XK_p)
ks = XK_Up;
else if(ks == XK_n)
ks = XK_Down;
}
/* Check if there is a keypad */
if(IsKeypadKey(ks) && ks == XK_KP_Enter)