add ^a and ^e keybindings
29686bd1
1 file(s) · +8 −0
| 394 | 394 | switch (ksym) { |
|
| 395 | 395 | default: /* ignore other control sequences */ |
|
| 396 | 396 | return; |
|
| 397 | + | case XK_a: |
|
| 398 | + | case XK_A: |
|
| 399 | + | cursor = 0; |
|
| 400 | + | break; |
|
| 401 | + | case XK_e: |
|
| 402 | + | case XK_E: |
|
| 403 | + | cursor = strlen(text); |
|
| 404 | + | break; |
|
| 397 | 405 | case XK_c: |
|
| 398 | 406 | case XK_C: |
|
| 399 | 407 | ksym = XK_Escape; |