function useHotkeyRecorder(options): OctaneHotkeyRecorder<HotkeyChord>;Defined in: useHotkeyRecorder.ts:20
Records a shortcut and destroys the recorder on unmount. 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
OctaneHotkeyRecorder<HotkeyChord>
function useHotkeyRecorder(options): OctaneHotkeyRecorder;Defined in: useHotkeyRecorder.ts:23
Records a shortcut and destroys the recorder on unmount. 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