diff options
author | Christoph Lohmann | 2012-11-14 06:37:24 +0100 |
---|---|---|
committer | Christoph Lohmann | 2012-11-14 06:37:24 +0100 |
commit | fd832ff4f0b744483ec3c9f6a02594212e258fa7 (patch) | |
tree | 38374549af7e12602474e5a1af3d9450a4625bec /st.c | |
parent | 0a8416e6f6b67bf7d928da51dd3adce46966e2fb (diff) | |
download | aur-fd832ff4f0b744483ec3c9f6a02594212e258fa7.tar.gz |
Fixing the tab key, when no mask is wanted.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2699,18 +2699,22 @@ kmap(KeySym k, uint state) { if(kp->k != k) continue; - if((state & mask) != mask && + + if((state & mask) != mask || (mask == XK_NO_MOD && state)) { continue; } + if((kp->appkey < 0 && IS_SET(MODE_APPKEYPAD)) || (kp->appkey > 0 && !IS_SET(MODE_APPKEYPAD))) { continue; } + if((kp->appcursor < 0 && IS_SET(MODE_APPCURSOR)) || (kp->appcursor > 0 && !IS_SET(MODE_APPCURSOR))) { continue; } + if((kp->crlf < 0 && IS_SET(MODE_CRLF)) || (kp->crlf > 0 && !IS_SET(MODE_CRLF))) { continue; @@ -2718,6 +2722,7 @@ kmap(KeySym k, uint state) { return kp->s; } + return NULL; } |