[hackers] [dmenu] add ^a and ^e keybindings || pancake<nopcode.org>

From: <hg_AT_suckless.org>
Date: Thu, 1 Apr 2010 17:12:42 +0000 (UTC)

changeset: 291:8d30fd137bad
tag: tip
user: pancake<nopcode.org>
date: Thu Apr 01 19:10:41 2010 +0200
files: dmenu.c
description:
add ^a and ^e keybindings

diff -r a74c87f0dd3d -r 8d30fd137bad dmenu.c
--- a/dmenu.c Wed Mar 31 22:43:49 2010 +0100
+++ b/dmenu.c Thu Apr 01 19:10:41 2010 +0200
@@ -394,6 +394,14 @@
                 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;
Received on Thu Apr 01 2010 - 17:12:42 UTC

This archive was generated by hypermail 2.2.0 : Thu Apr 01 2010 - 17:24:06 UTC