The built-in keys (OpenFrames'): v the next view, V the previous
one, the space bar resets the view; not with control, alt or meta held.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowProxy), | intent(inout), | target | :: | self | ||
| integer, | intent(in) | :: | key |
a character code or KEY_; MOD_ bits |
||
| integer, | intent(in) | :: | modifiers |
a character code or KEY_; MOD_ bits |
subroutine default_key(self, key, modifiers) class(WindowProxy), intent(inout), target :: self integer, intent(in) :: key, modifiers !! a character code or KEY_*; MOD_* bits type(View), pointer :: v if (iand(modifiers, MOD_CONTROL + MOD_ALT + MOD_META) /= 0) return if (key == iachar('v')) then call self%next_view() else if (key == iachar('V')) then call self%previous_view() else if (key == KEY_SPACE) then v => self%current_view() call v%reset_view() end if end subroutine default_key