s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Svelte · Workspace

HotkeyInput

No summary has been written for HotkeyInput. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { HotkeyInput } from '@happyvertical/smrt-svelte/workspace';
Import path
@happyvertical/smrt-svelte/workspace
Props
4
Props described
4 of 4
Bindable state
0
Callback events
1
Verified release
0.44.0

Props

NameTypeRequiredDescription
valueShellHotkeyBinding | nullNoCurrent hotkey binding displayed in the button.
disabledbooleanNoBlocks keyboard input capture and disables the button.
conflictsWithstring | nullNoOther hotkey or action this binding conflicts with, shown as an error.
oncapture(binding: ShellHotkeyBinding | null) => voidNoCalled when user captures a new hotkey, or null if cleared.

Bindable state

This component has no bindable public state.

Callback events

  • oncapture(binding: ShellHotkeyBinding | null) => void

Examples and explanation