aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-28 13:42:39 +0100
committerBert <ber.t@gmx.com>2011-01-28 13:42:39 +0100
commit019e2274a88f35668bc6687eb4ed5ca16f7cf066 (patch)
treeae991aa151817193b964aa3035a800246822ed22 /main.c
parent8123d63c5b76909ce70f09614ac0e45760a69d71 (diff)
Map arrow keys to h/j/k/l
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.c b/main.c
index 7d1e682..aa21426 100644
--- a/main.c
+++ b/main.c
@@ -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) {