From: pancake Date: Thu, 1 Apr 2010 17:10:41 +0000 (+0200) Subject: add ^a and ^e keybindings X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=29686bd1b8513ba7512ab089cfdbc7df44986409;p=dmenu.git add ^a and ^e keybindings --- diff --git a/dmenu.c b/dmenu.c index fd9baaa..4c87d6a 100644 --- a/dmenu.c +++ b/dmenu.c @@ -394,6 +394,14 @@ kpress(XKeyEvent * e) { switch (ksym) { default: /* ignore other control sequences */ return; + case XK_a: + case XK_A: + cursor = 0; + break; + case XK_e: + case XK_E: + cursor = strlen(text); + break; case XK_c: case XK_C: ksym = XK_Escape;