diff --git a/keyboard-select.patch b/keyboard-select.patch index cd17c9f..1a37736 100644 --- a/keyboard-select.patch +++ b/keyboard-select.patch @@ -289,19 +289,7 @@ diff --git a/x.c b/x.c index 0422421..f5fa3e2 100644 --- a/x.c +++ b/x.c -@@ -1869,16 +1869,23 @@ kpress(XEvent *ev) - { - XKeyEvent *e = &ev->xkey; - KeySym ksym; - char buf[32], *customkey; - int len; - Rune c; - Status status; - Shortcut *bp; - - if (IS_SET(MODE_KBDLOCK)) - return; - +@@ -1882,4 +1882,11 @@ kpress(XEvent *ev) len = XmbLookupString(xw.xic, e, buf, sizeof buf, &ksym, &status); + if ( IS_SET(MODE_KBDSELECT) ) { + if ( match(XK_NO_MOD, e->state) || @@ -313,15 +301,7 @@ index 0422421..f5fa3e2 100644 /* 1. shortcuts */ for (bp = shortcuts; bp < shortcuts + LEN(shortcuts); bp++) { if (ksym == bp->keysym && match(bp->mod, e->state)) { -@@ -2107,14 +2114,22 @@ usage(void) - { - die("usage: %s [-aiv] [-c class] [-f font] [-g geometry]" - " [-n name] [-o file]\n" - " [-T title] [-t title] [-w windowid]" - " [[-e] command [args ...]]\n" - " %s [-aiv] [-c class] [-f font] [-g geometry]" - " [-n name] [-o file]\n" - " [-T title] [-t title] [-w windowid] -l line" +@@ -2116,6 +2123,14 @@ usage(void) " [stty_args ...]\n", argv0, argv0); }