KetraTerm
API · DevelopmentAll versions

withShortcut

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

To reassign another action's shortcut, first remove that binding with withoutShortcut. An unchanged binding may return this instance.

Return

map containing the updated binding.

Parameters

action

host action to bind.

shortcut

binding using an extended keyboard modifier mask.

Throws

if another action has this shortcut or it contains legacy, mouse-button, or unknown modifier bits.