Re: [dev] dmenu: Patch to allow abort with C-g

From: Kris Maglione <maglione.k_AT_gmail.com>
Date: Fri, 5 Jun 2009 13:02:07 -0400

On Fri, Jun 05, 2009 at 06:33:13PM +0200, Jan Hülsbergen wrote:
>since I'm a heavy Emacs user, I missed being able to abort/exit dmenu
>with C-g in addition to ESC and I wrote a little patch to do just
>that. So if anyone else is interested, here it is.

Not that difficult:

>--- dmenu.c.orig 2009-04-18 13:50:04.000000000 +0200
>+++ dmenu.c 2009-06-05 03:23:29.000000000 +0200
>@@ -333,6 +333,7 @@
> switch (ksym) {
> default: /* ignore other control sequences */
> return;
>+ case XK_g:
> case XK_bracketleft:
> ksym = XK_Escape;
> break;

-- 
Kris Maglione
There are two ways to write error-free programs; only the third works.
	--Alan J. Perlis
Received on Fri Jun 05 2009 - 17:02:07 UTC

This archive was generated by hypermail 2.2.0 : Fri Jun 05 2009 - 17:12:01 UTC