function createHotkeyRecorder(options): SolidHotkeyRecorder<HotkeyChord>;Defined in: createHotkeyRecorder.ts:45
Solid primitive for recording keyboard shortcuts. Options may be an accessor.
With the default maxSteps: 1, the first valid chord is recorded. With a larger maxSteps, each chord adds a step; the recording commits on Enter (unless commitKeys: 'none'), after idleTimeoutMs, or at maxSteps, and onRecord receives a chord (one step) or a sequence.
HotkeyChordRecorderOptions
SolidHotkeyRecorder<HotkeyChord>
const recorder = createHotkeyRecorder({ onRecord: setShortcut })
const sequenceRecorder = createHotkeyRecorder({ maxSteps: 3, onRecord: setShortcut })function createHotkeyRecorder(options): SolidHotkeyRecorder;Defined in: createHotkeyRecorder.ts:48
Solid primitive for recording keyboard shortcuts. Options may be an accessor.
With the default maxSteps: 1, the first valid chord is recorded. With a larger maxSteps, each chord adds a step; the recording commits on Enter (unless commitKeys: 'none'), after idleTimeoutMs, or at maxSteps, and onRecord receives a chord (one step) or a sequence.
HotkeySequenceRecorderOptions
const recorder = createHotkeyRecorder({ onRecord: setShortcut })
const sequenceRecorder = createHotkeyRecorder({ maxSteps: 3, onRecord: setShortcut })function createHotkeyRecorder(options): SolidHotkeyRecorder;Defined in: createHotkeyRecorder.ts:53
Solid primitive for recording keyboard shortcuts. Options may be an accessor.
With the default maxSteps: 1, the first valid chord is recorded. With a larger maxSteps, each chord adds a step; the recording commits on Enter (unless commitKeys: 'none'), after idleTimeoutMs, or at maxSteps, and onRecord receives a chord (one step) or a sequence.
() => HotkeySequenceRecorderOptions
const recorder = createHotkeyRecorder({ onRecord: setShortcut })
const sequenceRecorder = createHotkeyRecorder({ maxSteps: 3, onRecord: setShortcut })function createHotkeyRecorder(options): SolidHotkeyRecorder<HotkeyChord>;Defined in: createHotkeyRecorder.ts:56
Solid primitive for recording keyboard shortcuts. Options may be an accessor.
With the default maxSteps: 1, the first valid chord is recorded. With a larger maxSteps, each chord adds a step; the recording commits on Enter (unless commitKeys: 'none'), after idleTimeoutMs, or at maxSteps, and onRecord receives a chord (one step) or a sequence.
() => HotkeyChordRecorderOptions
SolidHotkeyRecorder<HotkeyChord>
const recorder = createHotkeyRecorder({ onRecord: setShortcut })
const sequenceRecorder = createHotkeyRecorder({ maxSteps: 3, onRecord: setShortcut })function createHotkeyRecorder(options): SolidHotkeyRecorder;Defined in: createHotkeyRecorder.ts:59
Solid primitive for recording keyboard shortcuts. Options may be an accessor.
With the default maxSteps: 1, the first valid chord is recorded. With a larger maxSteps, each chord adds a step; the recording commits on Enter (unless commitKeys: 'none'), after idleTimeoutMs, or at maxSteps, and onRecord receives a chord (one step) or a sequence.
() => HotkeyRecorderOptions
const recorder = createHotkeyRecorder({ onRecord: setShortcut })
const sequenceRecorder = createHotkeyRecorder({ maxSteps: 3, onRecord: setShortcut })