Skip to content

Commit

Permalink
Make NormalizedHotkeyString extend NormalizedHotkeyString
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 authored Oct 12, 2023
1 parent b3ba694 commit 402ae34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotkey.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {NormalizedSequenceString} from './sequence'

const normalizedHotkeyBrand = Symbol('normalizedHotkey')

/**
Expand All @@ -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.
Expand Down

0 comments on commit 402ae34

Please sign in to comment.