diff options
author | Bert <ber.t@gmx.com> | 2011-01-28 13:42:39 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-28 13:42:39 +0100 |
commit | 019e2274a88f35668bc6687eb4ed5ca16f7cf066 (patch) | |
tree | ae991aa151817193b964aa3035a800246822ed22 /main.c | |
parent | 8123d63c5b76909ce70f09614ac0e45760a69d71 (diff) |
Map arrow keys to h/j/k/l
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -149,6 +149,18 @@ void on_keypress(XEvent *ev) { case XK_BackSpace: key = 'p'; break; + case XK_Left: + key = 'h'; + break; + case XK_Down: + key = 'j'; + break; + case XK_Up: + key = 'k'; + break; + case XK_Right: + key = 'l'; + break; } switch (key) { |