Skip to content

@jsvision/ui / Commands

Variable: Commands

const Commands: object

Defined in: ui/src/status/commands.ts:12

The standard command names.

Type Declaration

cancel

readonly cancel: "cancel" = 'cancel'

Cancel a dialog; always closes, skipping the valid() check.

cascade

readonly cascade: "cascade" = 'cascade'

Cascade all windows from the top-left.

close

readonly close: "close" = 'close'

Close the active window.

copy

readonly copy: "copy" = 'copy'

Copy the focused editable widget's selection to the clipboard (Ctrl+C, or classic Ctrl+Insert).

cut

readonly cut: "cut" = 'cut'

Cut the focused editable widget's selection to the clipboard (Ctrl+X, or classic Shift+Delete).

next

readonly next: "next" = 'next'

Activate the next window in z-order.

no

readonly no: "no" = 'no'

Negative dialog answer; gated by valid() like ok.

ok

readonly ok: "ok" = 'ok'

Accept a dialog; closes it after its valid() check passes.

paste

readonly paste: "paste" = 'paste'

Paste the clipboard into the focused editable widget (Ctrl+V, or classic Shift+Insert).

prev

readonly prev: "prev" = 'prev'

Activate the previous window in z-order.

quit

readonly quit: "quit" = 'quit'

Quit the application (terminates run() with an exit code).

redo

readonly redo: "redo" = 'redo'

Redo the focused editor's last undone step (command-only — no default key chord).

selectAll

readonly selectAll: "selectAll" = 'selectAll'

Select all text in the focused editable widget (Ctrl+A).

tile

readonly tile: "tile" = 'tile'

Tile all windows into a grid.

undo

readonly undo: "undo" = 'undo'

Undo the focused editor's last edit step.

yes

readonly yes: "yes" = 'yes'

Affirmative dialog answer; gated by valid() like ok.

zoom

readonly zoom: "zoom" = 'zoom'

Toggle maximize/restore on the active window.