Added g/G mappings for goto first/last image
This commit is contained in:
parent
bd6b05c0ed
commit
2f7bd169ea
14
main.c
14
main.c
|
@ -168,6 +168,20 @@ void on_keypress(XEvent *ev) {
|
||||||
changed = 1;
|
changed = 1;
|
||||||
}
|
}
|
||||||
break;
|
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 */
|
/* zooming */
|
||||||
case '+':
|
case '+':
|
||||||
|
|
Loading…
Reference in New Issue