add ^a and ^e keybindings
This commit is contained in:
parent
d5cfb20b00
commit
b22d4e4384
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user