1
0
Fork 0

add ^a and ^e keybindings

This commit is contained in:
pancake 2010-04-01 19:10:41 +02:00
parent 052ffae192
commit 29686bd1b8

View file

@ -394,6 +394,14 @@ kpress(XKeyEvent * e) {
switch (ksym) { switch (ksym) {
default: /* ignore other control sequences */ default: /* ignore other control sequences */
return; 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:
case XK_C: case XK_C:
ksym = XK_Escape; ksym = XK_Escape;