diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-11-19 19:22:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-11-19 19:22:53 +0100 |
commit | 3b3d64abd92e8b75f1533f9681609a940e6bd3a2 (patch) | |
tree | 2b39dc6ed7959ac4e008da214f6179d5013bc3fe /src/keyevents.c | |
parent | 5aa0652fd2370d5ab344277e38ccb875eb339e35 (diff) |
pause slideshow when editing a caption
Diffstat (limited to 'src/keyevents.c')
-rw-r--r-- | src/keyevents.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 3c864fb..1318d3d 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -640,8 +640,14 @@ void feh_event_handle_keypress(XEvent * ev) slideshow_change_image(winwid, SLIDE_RAND, 1); } else if (feh_is_kp(&keys.toggle_caption, keysym, state)) { - if (opt.caption_path) + if (opt.caption_path) { + /* + * editing captions in slideshow mode does not make any sense + * at all; this is just in case someone accidentally does it... + */ + opt.paused = 1; winwid->caption_entry = 1; + } winwidget_render_image(winwid, 0, 0); } else if (feh_is_kp(&keys.reload_image, keysym, state)) { |