New key mappings: 0/w, zoom to 100%/to fit window

This commit is contained in:
Bert
2011-02-03 16:14:49 +01:00
parent bad9a70a48
commit c6556f8cc7
3 changed files with 19 additions and 8 deletions

7
main.c
View File

@ -284,6 +284,13 @@ void on_keypress(XKeyEvent *kev) {
case XK_minus:
changed = img_zoom_out(&img);
break;
case XK_0:
changed = img_zoom(&img, 1.0);
break;
case XK_w:
if ((changed = img_fit(&img, &win, 1)))
img_center(&img, &win);
break;
/* panning */
case XK_h: