Support XK_KP_{Add,Subtract} for zooming
This commit is contained in:
parent
bd87ae9346
commit
dde2d9d023
3
main.c
3
main.c
|
@ -431,12 +431,15 @@ void on_keypress(XKeyEvent *kev) {
|
||||||
/* zooming */
|
/* zooming */
|
||||||
case XK_plus:
|
case XK_plus:
|
||||||
case XK_equal:
|
case XK_equal:
|
||||||
|
case XK_KP_Add:
|
||||||
changed = img_zoom_in(&img, &win);
|
changed = img_zoom_in(&img, &win);
|
||||||
break;
|
break;
|
||||||
case XK_minus:
|
case XK_minus:
|
||||||
|
case XK_KP_Subtract:
|
||||||
changed = img_zoom_out(&img, &win);
|
changed = img_zoom_out(&img, &win);
|
||||||
break;
|
break;
|
||||||
case XK_0:
|
case XK_0:
|
||||||
|
case XK_KP_0:
|
||||||
changed = img_zoom(&img, &win, 1.0);
|
changed = img_zoom(&img, &win, 1.0);
|
||||||
break;
|
break;
|
||||||
case XK_w:
|
case XK_w:
|
||||||
|
|
Loading…
Reference in New Issue