Pārlūkot izejas kodu

Added g/G mappings for goto first/last image

master
Bert pirms 14 gadiem
vecāks
revīzija
2f7bd169ea
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. +14
    -0
      main.c

+ 14
- 0
main.c Parādīt failu

@@ -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 '+':


||||||
x
 
000:0
Notiek ielāde…
Atcelt
Saglabāt