ModifierShortcut

This interface models the modifier shortcuts, that enable combination of shortcuts like "STRG + F" or alike.

If offers default implementation for concatenating modifiers with "real" shortcuts or just Strings to offer a beautiful readable shortcut combination:

// Start with modifier shortcut and append just a String
Keys.Control + "K"
// or other way round
Shortcut("K") + Keys.Control

See also

Inheritors

Properties

Link copied to clipboard
abstract val alt: Boolean
Link copied to clipboard
abstract val ctrl: Boolean
Link copied to clipboard
abstract val meta: Boolean
Link copied to clipboard
abstract val shift: Boolean

Functions

Link copied to clipboard
open operator fun plus(other: Shortcut): Shortcut

This operator function enables the concatenation with a Shortcut:

open operator fun plus(other: String): Shortcut

This operator function enables the concatenation with simply a String to enable a nice readable keyboard combination:

Link copied to clipboard

Enables combination of ModifierShortcuts like "STRG + ALT + F":