Krolyxon
Commit 76cca4e

Branches

Refs →

nsxiv76cca4e

Activate thumb-mode with Return key

Author
Bert
Date
2011-02-17 18:00 +0100
Parent
f235b62
Commit
76cca4ecb683e520d2ad63f383c9327ddcc1102f

+12 −0

1 file changed

  1. M main.c +12 −0
M main.c View
@@ -378,6 +378,18 @@ void on_keypress(XKeyEvent *kev) {
378378 }
379379 break;
380380
381+ /* switch to thumnail mode */
382+ case XK_Return:
383+ if (options->thumbnails) {
384+ if (fileidx < tns.cnt)
385+ tns.sel = fileidx;
386+ else
387+ tns.sel = 0;
388+ mode = MODE_THUMBS;
389+ changed = 1;
390+ }
391+ break;
392+
381393 /* miscellaneous */
382394 case XK_a:
383395 img_toggle_antialias(&img);