Skip to content

Search

Dokumentation

widget_shortcut

The rows of a chord that clicks a widget, which any kind may carry. The widget_shortcut component of the Balaur game engine: its 3 properties, and the…

Auf dieser Seite

ui · 3 properties · UI

The rows of a chord that clicks a widget, which any kind may carry.

In a scene, widget_shortcut is the node key that applies it. A script reaches each property below as a field on node.widget_shortcut: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.widget_shortcut.get() and node.widget_shortcut.set(table).

Properties

property type default description
shortcut string — A chord that clicks this widget wherever it is, as cmd+shift+s or f5; a menu row fires while its menu is shut, and draws the chord against its far edge unless it says its own trailing
takes_typing bool false Whether shortcut takes its key ahead of a field being typed into, a plain key included, so the field never sees it: a completion list's arrows, Enter and Escape while it is up
while_typing bool true Whether shortcut fires while a text field holds the keyboard. A chord without cmd, ctrl or alt never does unless it is a function key, since that is typing; off, no chord does, for one the field has a use for itself, as cmd+z

Bist du sicher?