Skip to content

Commit ce0b77b

Browse files
committed
chain to base Grx.Application event handler
this handls APP_* events and ignores all other events when is_active == false
1 parent c61fa0a commit ce0b77b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/ConsoleApp.vala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,14 @@ namespace Ev3devKit {
7474
}
7575

7676
public override bool event (Grx.Event event) {
77+
if (base.event (event)) {
78+
return true;
79+
}
7780
if (event.type == Grx.EventType.KEY_DOWN) {
7881
Ui.Screen.active_screen.queue_key_code (event.key.keysym);
7982
return true;
8083
}
8184
return false;
8285
}
8386
}
84-
}
87+
}

0 commit comments

Comments
 (0)