[hackers] [st] Fix tab key || "Roberto E. Vargas Caballero"

From: <hg_AT_suckless.org>
Date: Thu, 15 Nov 2012 15:41:17 +0100 (CET)

changeset: 407:cf3bfed749a8
user: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>
date: Wed Nov 14 11:14:29 2012 +0100
files: config.def.h st.c
description:
Fix tab key
When Shift + Tab is pressed X server send the event XK_ISO_Left_Tab with
ShiftMask, so this is the entry we need in config.def.h

This patch also revert the previous patch for this issue because it breaks
the keyboard.
---
 config.def.h |    2 +-
 st.c         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff -r 19ef42df8e7d -r cf3bfed749a8 config.def.h
--- a/config.def.h	Wed Nov 14 06:37:24 2012 +0100
+++ b/config.def.h	Wed Nov 14 11:14:29 2012 +0100
_AT_@ -141,7 +141,7 @@
 	{ XK_Right,         ShiftMask,      "\033[1;2C",     0,    0,    0},
 	{ XK_Right,         ControlMask,    "\033[1;5C",     0,    0,    0},
 	{ XK_Right,         Mod1Mask,       "\033[1;3C",     0,    0,    0},
-	{ XK_Tab,           ShiftMask,      "\033[Z",        0,    0,    0},
+	{ XK_ISO_Left_Tab,  ShiftMask,      "\033[Z",        0,    0,    0},
 	{ XK_Return,        XK_NO_MOD,      "\n",            0,    0,   -1},
 	{ XK_Return,        XK_NO_MOD,      "\r\n",          0,    0,   +1},
 	{ XK_Return,        Mod1Mask,       "\033\n",        0,    0,   -1},
diff -r 19ef42df8e7d -r cf3bfed749a8 st.c
--- a/st.c	Wed Nov 14 06:37:24 2012 +0100
+++ b/st.c	Wed Nov 14 11:14:29 2012 +0100
_AT_@ -2700,7 +2700,7 @@
 		if(kp->k != k)
 			continue;
 
-		if((state & mask) != mask ||
+		if((state & mask) != mask &&
 				(mask == XK_NO_MOD && state)) {
 			continue;
 		}
Received on Thu Nov 15 2012 - 15:41:17 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 15 2012 - 15:48:22 CET