Skip to content

Instantly share code, notes, and snippets.

@c00kiemon5ter
Created February 22, 2012 22:04
Show Gist options
  • Save c00kiemon5ter/1887740 to your computer and use it in GitHub Desktop.
Save c00kiemon5ter/1887740 to your computer and use it in GitHub Desktop.
use arrow keys to navigate images in meh
diff --git a/src/xlib.c b/src/xlib.c
index 393617d..9940eb3 100644
--- a/src/xlib.c
+++ b/src/xlib.c
@@ -201,9 +201,13 @@ void handlekeypress(XEvent *event){
key_action();
break;
case XK_j:
+ case XK_l:
+ case XK_Right:
key_next();
break;
case XK_k:
+ case XK_h:
+ case XK_Left:
key_prev();
break;
case XK_r:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment