Skip to content

KeyboardCommand.checkIsOn?

KeyboardCommand › checkIsOn?

Type: () => boolean

Whether the command reads as ON. Supply it for a toggle whose state lives outside the strip; omit it for an action, which does something and is done. A CheckboxCommand needs no equivalent — its checkbox element is the state.

Re-read by ModalCommands.refresh.