diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2014-09-17 13:40:11 +0200 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2014-09-17 13:40:11 +0200 |
commit | 13a529ce63364544bdc851dfd5d3aa2ef8740914 (patch) | |
tree | edd5ecbaca11e754b319fe861889efed2e0618a8 | |
parent | aa69426670bf0ae480db127ff8d4fc62d6da2593 (diff) |
applied Hiltjo's patch as suggested on the ml to fix ControlMask for C-j and C-m
-rw-r--r-- | dmenu.1 | 3 | ||||
-rw-r--r-- | dmenu.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -136,6 +136,9 @@ Delete line right | |||
136 | C\-m | 136 | C\-m |
137 | Return | 137 | Return |
138 | .TP | 138 | .TP |
139 | C\-M | ||
140 | Shift-Return | ||
141 | .TP | ||
139 | C\-n | 142 | C\-n |
140 | Down | 143 | Down |
141 | .TP | 144 | .TP |
@@ -256,9 +256,9 @@ keypress(XKeyEvent *ev) { | |||
256 | case XK_h: ksym = XK_BackSpace; break; | 256 | case XK_h: ksym = XK_BackSpace; break; |
257 | case XK_i: ksym = XK_Tab; break; | 257 | case XK_i: ksym = XK_Tab; break; |
258 | case XK_j: /* fallthrough */ | 258 | case XK_j: /* fallthrough */ |
259 | case XK_J: ksym = XK_Return; break; | 259 | case XK_J: /* fallthrough */ |
260 | case XK_m: /* fallthrough */ | 260 | case XK_m: /* fallthrough */ |
261 | case XK_M: ksym = XK_Return; break; | 261 | case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break; |
262 | case XK_n: ksym = XK_Down; break; | 262 | case XK_n: ksym = XK_Down; break; |
263 | case XK_p: ksym = XK_Up; break; | 263 | case XK_p: ksym = XK_Up; break; |
264 | 264 | ||