aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imv.c')
-rw-r--r--src/imv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imv.c b/src/imv.c
index 6376ee5..269a70a 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -460,6 +460,12 @@ static void event_handler(void *data, const struct imv_event *e)
case IMV_EVENT_KEYBOARD:
key_handler(imv, e->data.keyboard.scancode, e->data.keyboard. pressed);
break;
+ case IMV_EVENT_KEYBOARD_MODS:
+ imv_keyboard_update_mods(imv->keyboard,
+ e->data.keyboard_mods.depressed,
+ e->data.keyboard_mods.latched,
+ e->data.keyboard_mods.locked);
+ break;
case IMV_EVENT_MOUSE_MOTION:
if (imv_window_get_mouse_button(imv->window, 1)) {
imv_viewport_move(imv->view, e->data.mouse_motion.dx,