KetraTerm
API · DevelopmentAll versions

SwingTerminalHostShortcutMap

Immutable mapping from host-owned terminal actions to Swing shortcuts.

Each action has at most one shortcut, and each shortcut belongs to at most one action. Unspecified actions are unbound. Hosts explicitly install bindings using forEachShortcut or dispatch key events using actionFor.

Constructors

Link copied to clipboard

Creates a detached snapshot of shortcuts, including an empty map. Subsequent changes to the supplied map do not affect this instance.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun actionFor(keyCode: Int, modifiersEx: Int): SwingTerminalHostAction?

Returns the host action requested by keyCode and modifiersEx.

Link copied to clipboard

Invokes consumer once for each configured binding in action enum order. Unbound actions are omitted.

Link copied to clipboard

Returns the configured shortcut for action.

Link copied to clipboard

Returns a map with action unbound. This instance is unchanged.

Link copied to clipboard

Returns a map with action bound to shortcut, replacing its previous binding. This instance is unchanged.