diff options
author | Bert <ber.t@gmx.com> | 2011-05-16 15:54:09 +0200 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-05-16 15:54:09 +0200 |
commit | 485e6c863a2f25737e75359da1f1c74f6f17e004 (patch) | |
tree | ee55279d24897d3dd012f5b5cd18116e6296bb1b /main.c | |
parent | 1763e9f2537d4ca3cf8a614fad8a606db69da6ea (diff) |
H/J/K/L mappings to pan to edges
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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); |