diff --git a/src/hotkey.ts b/src/hotkey.ts index 9e4a893..94cd3ed 100644 --- a/src/hotkey.ts +++ b/src/hotkey.ts @@ -1,3 +1,5 @@ +import {NormalizedSequenceString} from './sequence' + const normalizedHotkeyBrand = Symbol('normalizedHotkey') /** @@ -17,7 +19,7 @@ const normalizedHotkeyBrand = Symbol('normalizedHotkey') * "Control+s" // Control modifier plus letter * "Control+Alt+Delete" // Multiple modifiers */ -export type NormalizedHotkeyString = string & {[normalizedHotkeyBrand]: true} +export type NormalizedHotkeyString = NormalizedSequenceString & {[normalizedHotkeyBrand]: true} /** * Returns a hotkey character string for keydown and keyup events.