diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-05-10 19:37:27 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-05-10 19:37:27 +0200 |
commit | 3be31437fe3493fe013659290744f590d1e23f9c (patch) | |
tree | e4da4f5df3134a5c71792ef916a9eb574c997b96 /src | |
parent | 83ccc968654572744ef1f5b2aeb3fcd15beb16da (diff) |
Respect thumbnail selection keys only in thumbnail list
Diffstat (limited to 'src')
-rw-r--r-- | src/keyevents.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 72b4168..c44667f 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -421,13 +421,13 @@ void feh_event_handle_keypress(XEvent * ev) if (feh_is_kp(&keys.next_img, keysym, state)) { if (opt.slideshow) slideshow_change_image(winwid, SLIDE_NEXT); - else if (opt.thumbs) + else if (winwid->type == WIN_TYPE_THUMBNAIL) feh_thumbnail_select_next(winwid, 1); } else if (feh_is_kp(&keys.prev_img, keysym, state)) { if (opt.slideshow) slideshow_change_image(winwid, SLIDE_PREV); - else if (opt.thumbs) + else if (winwid->type == WIN_TYPE_THUMBNAIL) feh_thumbnail_select_prev(winwid, 1); } else if (feh_is_kp(&keys.scroll_right, keysym, state)) { @@ -449,13 +449,13 @@ void feh_event_handle_keypress(XEvent * ev) else if (feh_is_kp(&keys.jump_back, keysym, state)) { if (opt.slideshow) slideshow_change_image(winwid, SLIDE_JUMP_BACK); - else if (opt.thumbs) + else if (winwid->type == WIN_TYPE_THUMBNAIL) feh_thumbnail_select_prev(winwid, 10); } else if (feh_is_kp(&keys.jump_fwd, keysym, state)) { if (opt.slideshow) slideshow_change_image(winwid, SLIDE_JUMP_FWD); - else if (opt.thumbs) + else if (winwid->type == WIN_TYPE_THUMBNAIL) feh_thumbnail_select_next(winwid, 10); } else if (feh_is_kp(&keys.quit, keysym, state)) { @@ -546,7 +546,7 @@ void feh_event_handle_keypress(XEvent * ev) winwidget_render_image(winwid, 0, 0); } else if (feh_is_kp(&keys.render, keysym, state)) { - if (opt.thumbs) + if (winwid->type == WIN_TYPE_THUMBNAIL) feh_thumbnail_show_selected(); else winwidget_render_image(winwid, 0, 0); |