aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-05-16 15:54:09 +0200
committerBert <ber.t@gmx.com>2011-05-16 15:54:09 +0200
commit485e6c863a2f25737e75359da1f1c74f6f17e004 (patch)
treeee55279d24897d3dd012f5b5cd18116e6296bb1b /main.c
parent1763e9f2537d4ca3cf8a614fad8a606db69da6ea (diff)
H/J/K/L mappings to pan to edges
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.c b/main.c
index 2fe743a..292c3bb 100644
--- a/main.c
+++ b/main.c
@@ -455,6 +455,19 @@ void on_keypress(XKeyEvent *kev) {
changed = img_pan(&img, &win, PAN_RIGHT);
break;
+ case XK_H:
+ changed = img_pan_edge(&img, &win, PAN_LEFT);
+ break;
+ case XK_J:
+ changed = img_pan_edge(&img, &win, PAN_DOWN);
+ break;
+ case XK_K:
+ changed = img_pan_edge(&img, &win, PAN_UP);
+ break;
+ case XK_L:
+ changed = img_pan_edge(&img, &win, PAN_RIGHT);
+ break;
+
/* rotation */
case XK_less:
img_rotate_left(&img, &win);