shortcuts
Chords a node answers: a press of one raises shortcut_pressed with its row's name on this node, whose script hears it as on_shortcut_pressed and whose…
Sur cette page
ui · 1 property · UI
Chords a node answers: a press of one raises shortcut_pressed with its row's name on this node, whose script hears it as on_shortcut_pressed and whose bindings as emitted:shortcut_pressed. A row answers while its node is shown: hidden, or under a widget that is not drawn, as a viewport with no size, it is silent. A widget's own shortcut is matched first, then the nodes in tree order, a row before a later one with its chord
In a scene, shortcuts is the node key that applies it. A script reaches each property below as a field on node.shortcuts: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.shortcuts.get() and node.shortcuts.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
rows |
list | [] |
The rows, each { chord, name, while_typing, takes_typing } |