function createHotkeyRecorder(options): SolidHotkeyRecorder<HotkeyChord>;Defined in: createHotkeyRecorder.ts:46
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: Infinity, onRecord: setShortcut })function createHotkeyRecorder(options): SolidHotkeyRecorder;Defined in: createHotkeyRecorder.ts:49
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: Infinity, onRecord: setShortcut })function createHotkeyRecorder(options): SolidHotkeyRecorder;Defined in: createHotkeyRecorder.ts:54
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: Infinity, onRecord: setShortcut })function createHotkeyRecorder(options): SolidHotkeyRecorder<HotkeyChord>;Defined in: createHotkeyRecorder.ts:57
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: Infinity, onRecord: setShortcut })function createHotkeyRecorder(options): SolidHotkeyRecorder;Defined in: createHotkeyRecorder.ts:60
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: Infinity, onRecord: setShortcut })