[hackers] [surf] Fixing keybindings when numlock is enabled. || Enno Boland (Gottox)

From: <hg_AT_suckless.org>
Date: Mon, 8 Jun 2009 18:50:50 +0000 (UTC)

changeset: 33:0f4737e48c72
tag: tip
user: Enno Boland (Gottox) <gottox_AT_s01.de>
date: Mon Jun 08 20:50:45 2009 +0200
files: surf.c
description:
Fixing keybindings when numlock is enabled.

diff -r c65777fb1475 -r 0f4737e48c72 surf.c
--- a/surf.c Mon Jun 08 17:25:52 2009 +0200
+++ b/surf.c Mon Jun 08 20:50:45 2009 +0200
@@ -204,7 +204,7 @@
                         return FALSE;
                 }
         }
- if(ev->state == GDK_CONTROL_MASK || ev->state == (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) {
+ if((ev->state & ~(GDK_SHIFT_MASK|GDK_LOCK_MASK)) == GDK_CONTROL_MASK) {
                 switch(ev->keyval) {
                 case GDK_r:
                 case GDK_R:
Received on Mon Jun 08 2009 - 18:50:50 UTC

This archive was generated by hypermail 2.2.0 : Mon Jun 08 2009 - 19:00:07 UTC