mojo.app.AppInstance.KeyEventFilter - nitrologic/monkey2 GitHub Wiki

mojo::mojo.app.mojo.app.AppInstance.KeyEventFilter

Field KeyEventFilter:Void(mojo:mojo.app.KeyEvent)

Key event filter.

To prevent the event from being sent to a view, a filter can eat the event using Event.Eat.

Filter functions should check if the event has already been 'eaten' by checking the event's Event.Eaten property before processing the event.