diff options
author | pancake <nopcode.org> | 2010-04-01 19:10:41 +0200 |
---|---|---|
committer | pancake <nopcode.org> | 2010-04-01 19:10:41 +0200 |
commit | 29686bd1b8513ba7512ab089cfdbc7df44986409 (patch) | |
tree | 9b90597a84a39141c823d8345836391f384757ed | |
parent | 052ffae1924a2760baa32f41e01de82e73e0bc5e (diff) |
add ^a and ^e keybindings
-rw-r--r-- | dmenu.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -394,6 +394,14 @@ kpress(XKeyEvent * e) { | |||
394 | switch (ksym) { | 394 | switch (ksym) { |
395 | default: /* ignore other control sequences */ | 395 | default: /* ignore other control sequences */ |
396 | return; | 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 | case XK_c: | 405 | case XK_c: |
398 | case XK_C: | 406 | case XK_C: |
399 | ksym = XK_Escape; | 407 | ksym = XK_Escape; |