From 402ae34736cacf5f941925b0add4fa927494d75b Mon Sep 17 00:00:00 2001 From: Ian Sanders Date: Thu, 12 Oct 2023 16:58:05 +0000 Subject: [PATCH] Make `NormalizedHotkeyString` extend `NormalizedHotkeyString` --- src/hotkey.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.