Skip to content

Commit

Permalink
chain to base Grx.Application event handler
Browse files Browse the repository at this point in the history
this handls APP_* events and ignores all other events when is_active == false
  • Loading branch information
dlech committed Aug 31, 2017
1 parent c61fa0a commit ce0b77b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ConsoleApp.vala
Expand Up @@ -74,11 +74,14 @@ namespace Ev3devKit {
}

public override bool event (Grx.Event event) {
if (base.event (event)) {
return true;
}
if (event.type == Grx.EventType.KEY_DOWN) {
Ui.Screen.active_screen.queue_key_code (event.key.keysym);
return true;
}
return false;
}
}
}
}

0 comments on commit ce0b77b

Please sign in to comment.