ShortcutsConfig

data class ShortcutsConfig(activateFocused: KeyboardEventMatcher, deactivateActivated: KeyboardEventMatcher, focusNext: KeyboardEventMatcher, focusPrevious: KeyboardEventMatcher)

These are the shortcuts that Zircon will use for component activation / deactivation and focus handling (next / previous).

Constructors

ShortcutsConfig
Link copied to clipboard
common
fun ShortcutsConfig(activateFocused: KeyboardEventMatcher = KeyboardEventMatcher( type = KeyboardEventType.KEY_PRESSED, code = KeyCode.SPACE ), deactivateActivated: KeyboardEventMatcher = KeyboardEventMatcher( type = KeyboardEventType.KEY_RELEASED, code = KeyCode.SPACE ), focusNext: KeyboardEventMatcher = KeyboardEventMatcher( type = KeyboardEventType.KEY_PRESSED, code = KeyCode.TAB, shiftDown = false ), focusPrevious: KeyboardEventMatcher = KeyboardEventMatcher( type = KeyboardEventType.KEY_PRESSED, code = KeyCode.TAB, shiftDown = true ))

Types

Companion
Link copied to clipboard
common
object Companion

Functions

component1
Link copied to clipboard
common
operator fun component1(): KeyboardEventMatcher
component2
Link copied to clipboard
common
operator fun component2(): KeyboardEventMatcher
component3
Link copied to clipboard
common
operator fun component3(): KeyboardEventMatcher
component4
Link copied to clipboard
common
operator fun component4(): KeyboardEventMatcher
copy
Link copied to clipboard
common
fun copy(activateFocused: KeyboardEventMatcher = KeyboardEventMatcher( type = KeyboardEventType.KEY_PRESSED, code = KeyCode.SPACE ), deactivateActivated: KeyboardEventMatcher = KeyboardEventMatcher( type = KeyboardEventType.KEY_RELEASED, code = KeyCode.SPACE ), focusNext: KeyboardEventMatcher = KeyboardEventMatcher( type = KeyboardEventType.KEY_PRESSED, code = KeyCode.TAB, shiftDown = false ), focusPrevious: KeyboardEventMatcher = KeyboardEventMatcher( type = KeyboardEventType.KEY_PRESSED, code = KeyCode.TAB, shiftDown = true )): ShortcutsConfig
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

activateFocused
Link copied to clipboard
common
val activateFocused: KeyboardEventMatcher
Default is <Space> press.
deactivateActivated
Link copied to clipboard
common
val deactivateActivated: KeyboardEventMatcher
Default is <Space> release.
focusNext
Link copied to clipboard
common
val focusNext: KeyboardEventMatcher
Default is <Tab> press.
focusPrevious
Link copied to clipboard
common
val focusPrevious: KeyboardEventMatcher
Default is <Shift>+<Tab> press.

Sources

(source)
Link copied to clipboard