Hi, 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.
~jan
--- dmenu.c.orig 2009-04-18 13:50:04.000000000 +0200 +++ dmenu.c 2009-06-05 03:23:29.000000000 +0200 @@ -333,6 +333,10 @@ switch (ksym) { default: /* ignore other control sequences */ return; + case XK_g: + ret = 1; + running = False; + break; case XK_bracketleft: ksym = XK_Escape; break;