[dev] [patch] add Control-G and Control-D to dmenu

From: Daniel Clemente <dcl441-bugs_AT_yahoo.com>
Date: Fri, 6 Aug 2010 03:08:48 -0700 (PDT)

This adds C-d (delete next char) and C-g (abort) to dmenu. These keys are also used in programs like bash or Emacs.
I think this completes the C-something keyboard shortcuts set.

-- Daniel

diff -r 8e019362118b dmenu.c
--- a/dmenu.c Thu Aug 05 15:41:56 2010 +0100
+++ b/dmenu.c Fri Aug 06 11:47:43 2010 +0200
@@ -194,12 +194,18 @@
                 case XK_c:
                         ksym = XK_Escape;
                         break;
+ case XK_d:
+ ksym = XK_Delete;
+ break;
                 case XK_e:
                         ksym = XK_End;
                         break;
                 case XK_f:
                         ksym = XK_Right;
                         break;
+ case XK_g:
+ ksym = XK_Escape;
+ break;
                 case XK_h:
                         ksym = XK_BackSpace;
                         break;
Received on Fri Aug 06 2010 - 12:08:48 CEST

This archive was generated by hypermail 2.2.0 : Fri Aug 06 2010 - 12:12:02 CEST