Skip to content

Commit dd45427

Browse files
authored
Merge pull request #106 from github/hotkey-extend-sequence
Make `NormalizedHotkeyString` extend `NormalizedSequenceString`
2 parents b3ba694 + 402ae34 commit dd45427

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/hotkey.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {NormalizedSequenceString} from './sequence'
2+
13
const normalizedHotkeyBrand = Symbol('normalizedHotkey')
24

35
/**
@@ -17,7 +19,7 @@ const normalizedHotkeyBrand = Symbol('normalizedHotkey')
1719
* "Control+s" // Control modifier plus letter
1820
* "Control+Alt+Delete" // Multiple modifiers
1921
*/
20-
export type NormalizedHotkeyString = string & {[normalizedHotkeyBrand]: true}
22+
export type NormalizedHotkeyString = NormalizedSequenceString & {[normalizedHotkeyBrand]: true}
2123

2224
/**
2325
* Returns a hotkey character string for keydown and keyup events.

0 commit comments

Comments
 (0)