diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2011-08-09 17:29:57 +0800 |
---|---|---|
committer | Yu-Jie Lin <livibetter@gmail.com> | 2011-08-09 17:29:57 +0800 |
commit | c78cee50a4c33e2286ad7ffe9f28e0fc4ef3bd89 (patch) | |
tree | 79c6be4103df3cf5f8aa4533a4bb560dc67e9a3b /src/keyevents.c | |
parent | 0047a2d08b11739aadeb4a8c28ef87416e7e11a5 (diff) |
Add flip/mirror in-placec edit actions (derf/#9)
Diffstat (limited to 'src/keyevents.c')
-rw-r--r-- | src/keyevents.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 12e9f73..617c2e9 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -285,6 +285,10 @@ void init_keyevents(void) { cur_kb = &keys.orient_1; else if (!strcmp(action, "orient_3")) cur_kb = &keys.orient_3; + else if (!strcmp(action, "flip")) + cur_kb = &keys.flip; + else if (!strcmp(action, "mirror")) + cur_kb = &keys.mirror; else if (!strcmp(action, "reload_minus")) cur_kb = &keys.reload_minus; else if (!strcmp(action, "reload_plus")) @@ -637,10 +641,16 @@ void feh_event_handle_keypress(XEvent * ev) winwidget_destroy(winwid); } else if (feh_is_kp(&keys.orient_1, keysym, state)) { - feh_edit_inplace_orient(winwid, 1); + feh_edit_inplace(winwid, 1); } else if (feh_is_kp(&keys.orient_3, keysym, state)) { - feh_edit_inplace_orient(winwid, 3); + feh_edit_inplace(winwid, 3); + } + else if (feh_is_kp(&keys.flip, keysym, state)) { + feh_edit_inplace(winwid, INPLACE_EDIT_FLIP); + } + else if (feh_is_kp(&keys.mirror, keysym, state)) { + feh_edit_inplace(winwid, INPLACE_EDIT_MIRROR); } else if (feh_is_kp(&keys.toggle_fullscreen, keysym, state)) { #ifdef HAVE_LIBXINERAMA |