A key was pressed: key (a character's code, iachar('v'), or KEY_),
with the modifier keys held (MOD_ bits). Set handled (false on entry)
to skip the built-in key's action.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowEventHandler), | intent(inout) | :: | self | |||
| class(WindowProxy), | intent(inout) | :: | window |
the window of the event |
||
| integer, | intent(in) | :: | key |
a character code or KEY_; MOD_ bits |
||
| integer, | intent(in) | :: | modifiers |
a character code or KEY_; MOD_ bits |
||
| logical, | intent(inout) | :: | handled |
(true: skip the built-in key) |
subroutine handler_key_press(self, window, key, modifiers, handled) class(WindowEventHandler), intent(inout) :: self class(WindowProxy), intent(inout) :: window !! the window of the event integer, intent(in) :: key, modifiers !! a character code or KEY_*; MOD_* bits logical, intent(inout) :: handled !! (true: skip the built-in key) end subroutine handler_key_press