aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-17 18:00:02 +0100
committerBert <ber.t@gmx.com>2011-02-17 18:00:02 +0100
commit76cca4ecb683e520d2ad63f383c9327ddcc1102f (patch)
tree082f73b2ba3fda5b35896cd97f7e7d3c11223ec8 /main.c
parentf235b62741c74879fbe7b784d60b7ee8981f77bb (diff)
Activate thumb-mode with Return key
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.c b/main.c
index 24e43d3..46e8e6b 100644
--- a/main.c
+++ b/main.c
@@ -378,6 +378,18 @@ void on_keypress(XKeyEvent *kev) {
}
break;
+ /* switch to thumnail mode */
+ case XK_Return:
+ if (options->thumbnails) {
+ if (fileidx < tns.cnt)
+ tns.sel = fileidx;
+ else
+ tns.sel = 0;
+ mode = MODE_THUMBS;
+ changed = 1;
+ }
+ break;
+
/* miscellaneous */
case XK_a:
img_toggle_antialias(&img);