[dev] [dmenu][patch] add vim-ish ^[ exit

From: Arkadiusz Hiler <arkadiusz_AT_hiler.pl>
Date: Thu, 13 Jun 2013 11:48:09 +0200

for all the people that switched from escape key to ^[ chord which are
frustrated being unable to exit dmenu at the first try
---
 dmenu.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/dmenu.c b/dmenu.c
index a06ae15..5e0a19c 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -279,6 +279,8 @@ keypress(XKeyEvent *ev) {
 		case XK_Return:
 		case XK_KP_Enter:
 			break;
+		case XK_bracketleft:
+			exit(EXIT_FAILURE);
 		default:
 			return;
 		}
-- 
1.8.3.1
Received on Thu Jun 13 2013 - 11:48:09 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 13 2013 - 12:00:07 CEST