diff options
author | Connor Lane Smith <cls@lubutu.com> | 2012-01-02 19:48:11 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2012-01-02 19:48:11 +0100 |
commit | 3402a8d53a95bd60b434bd26139d398392489b28 (patch) | |
tree | 27539d0e444b244236c2e8be7edb3ec06757f2ed | |
parent | d3e9bd152ed007682b339f3a07a5720ad53cb675 (diff) |
align M-[hjkl] closer to vi keys
-rw-r--r-- | dmenu.1 | 11 | ||||
-rw-r--r-- | dmenu.c | 8 |
2 files changed, 11 insertions, 8 deletions
@@ -116,6 +116,9 @@ Tab | |||
116 | C\-j | 116 | C\-j |
117 | Return | 117 | Return |
118 | .TP | 118 | .TP |
119 | C\-J | ||
120 | Shift-Return | ||
121 | .TP | ||
119 | C\-k | 122 | C\-k |
120 | Delete line right | 123 | Delete line right |
121 | .TP | 124 | .TP |
@@ -147,16 +150,16 @@ M\-G | |||
147 | End | 150 | End |
148 | .TP | 151 | .TP |
149 | M\-h | 152 | M\-h |
150 | Page up | 153 | Up |
151 | .TP | 154 | .TP |
152 | M\-j | 155 | M\-j |
153 | Up | 156 | Page down |
154 | .TP | 157 | .TP |
155 | M\-k | 158 | M\-k |
156 | Down | 159 | Page up |
157 | .TP | 160 | .TP |
158 | M\-l | 161 | M\-l |
159 | Page down | 162 | Down |
160 | .SH SEE ALSO | 163 | .SH SEE ALSO |
161 | .IR dwm (1), | 164 | .IR dwm (1), |
162 | .IR stest (1) | 165 | .IR stest (1) |
@@ -282,10 +282,10 @@ keypress(XKeyEvent *ev) { | |||
282 | switch(ksym) { | 282 | switch(ksym) { |
283 | case XK_g: ksym = XK_Home; break; | 283 | case XK_g: ksym = XK_Home; break; |
284 | case XK_G: ksym = XK_End; break; | 284 | case XK_G: ksym = XK_End; break; |
285 | case XK_h: ksym = XK_Prior; break; | 285 | case XK_h: ksym = XK_Up; break; |
286 | case XK_j: ksym = XK_Up; break; | 286 | case XK_j: ksym = XK_Next; break; |
287 | case XK_k: ksym = XK_Down; break; | 287 | case XK_k: ksym = XK_Prior; break; |
288 | case XK_l: ksym = XK_Next; break; | 288 | case XK_l: ksym = XK_Down; break; |
289 | default: | 289 | default: |
290 | return; | 290 | return; |
291 | } | 291 | } |