SHORTCUT Property Type
It's possible to set ARRAY of type shortcut on a view to trigger actions when the key combo is pressed.
"shortcuts": [
{
"shortcut": "⌘Y",
"action": { ... }
},
{
"shortcut": "⌘J",
"action": { ... }
}
]
Shortcuts are only processed when the currently focused component is a descendant of the view with the shortcuts set, and the deepest shortcuts (e.g. at the root view) take precedence.
TipUse the following modifier characters to composite your shortcut string: ⌘ ⇧ ⌃ ⌥ ↩︎