From 76cca4ecb683e520d2ad63f383c9327ddcc1102f Mon Sep 17 00:00:00 2001 From: Bert Date: Thu, 17 Feb 2011 18:00:02 +0100 Subject: [PATCH] Activate thumb-mode with Return key --- main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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);