Activate thumb-mode with Return key

This commit is contained in:
Bert 2011-02-17 18:00:02 +01:00
parent f235b62741
commit 76cca4ecb6

12
main.c
View File

@ -378,6 +378,18 @@ void on_keypress(XKeyEvent *kev) {
} }
break; 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 */ /* miscellaneous */
case XK_a: case XK_a:
img_toggle_antialias(&img); img_toggle_antialias(&img);