diff options
author | Bert <ber.t@gmx.com> | 2011-01-22 23:37:13 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-22 23:37:13 +0100 |
commit | 2f7bd169ea07be3b7f9cbcebfd9dc2082d9edd47 (patch) | |
tree | 8efaf0e55927ddac297970388f6092527a0fcc03 | |
parent | bd6b05c0edbac5168651768d9473a804b00a649a (diff) |
Added g/G mappings for goto first/last image
-rw-r--r-- | main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -168,6 +168,20 @@ void on_keypress(XEvent *ev) { changed = 1; } break; + case 'g': + if (fileidx != 0) { + fileidx = 0; + img_load(&img, filenames[fileidx]); + changed = 1; + } + break; + case 'G': + if (fileidx != filecnt - 1) { + fileidx = filecnt - 1; + img_load(&img, filenames[fileidx]); + changed = 1; + } + break; /* zooming */ case '+': |