From eb44ceb50fa5b47b78cb98794a8c9f6b424aa000 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 27 Nov 2013 16:24:17 +0000 Subject: Remove the option to bind a key by keycode with brackets; it never worked (and no one complained!). While it's fairly easy to fix, users should be using keysym names and not keycodes. Discussed at length months ago with todd@, matthieu@ and Owain. --- xevents.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index f7f772a..0d0426d 100644 --- a/xevents.c +++ b/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.93 2013/11/27 00:01:23 okan Exp $ + * $OpenBSD: xevents.c,v 1.94 2013/11/27 16:24:17 okan Exp $ */ /* @@ -275,9 +275,7 @@ xev_handle_keypress(XEvent *ee) if ((kb->modmask | modshift) != e->state) continue; - if ((kb->keycode != 0 && kb->keysym == NoSymbol && - kb->keycode == e->keycode) || kb->keysym == - (modshift == 0 ? keysym : skeysym)) + if (kb->keysym == (modshift == 0 ? keysym : skeysym)) break; } -- cgit v1.2.3-2-gb3c3