Package ch.bailu.gtk.gtk
Interface EventControllerKey.OnKeyPressed
- Enclosing class:
- EventControllerKey
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onKeyPressed
(int keyval, int keycode, int state) Emitted whenever a key is pressed.
-
Method Details
-
onKeyPressed
boolean onKeyPressed(int keyval, int keycode, int state) Emitted whenever a key is pressed.- Parameters:
keyval
- the pressed key.keycode
- the raw code of the pressed key.state
- the bitmask, representing the state of modifier keys and pointer buttons. See `GdkModifierType`.- Returns:
- %TRUE if the key press was handled, %FALSE otherwise.
-