From 019e2274a88f35668bc6687eb4ed5ca16f7cf066 Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 28 Jan 2011 13:42:39 +0100 Subject: Map arrow keys to h/j/k/l --- main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'main.c') 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) { -- cgit v1.2.3