Variable SpecialCombosConst
Special Combos : { isAltAndControl : ( ( event ) => ( "Alt" | "Control" ) [] ) ; isAltAndShift : ( ( event ) => ( "Alt" | "Shift" ) [] ) ; isAltOrControl : ( ( event ) => ( "Alt" | "Control" ) [] ) ; isAltOrShift : ( ( event ) => ( "Alt" | "Shift" ) [] ) ; isControlAndShift : ( ( event ) => ( "Control" | "Shift" ) [] ) ; isControlOrShift : ( ( event ) => ( "Control" | "Shift" ) [] ) ; isDigit : ( ( event ) => default [] ) ; isFunctionKey : ( ( event ) => string [] ) ; isLetter : ( ( event ) => string [] ) ; isLowercaseLetter : ( ( event ) => string [] ) ; isMediaControl : ( ( event ) => string [] ) ; isMetaAndControl : ( ( event ) => ( "Control" | "Meta" ) [] ) ; isMetaAndShift : ( ( event ) => ( "Shift" | "Meta" ) [] ) ; isMetaOrControl : ( ( event ) => ( "Control" | "Meta" ) [] ) ; isMetaOrShift : ( ( event ) => ( "Shift" | "Meta" ) [] ) ; isModifier : ( ( event ) => any [] ) ; isNavigationKey : ( ( event ) => string [] ) ; isNonEnglishLetter : ( ( event ) => string [] ) ; isSpecialCharacter : ( ( event ) => string [] ) ; isUppercaseLetter : ( ( event ) => string [] ) ; isWhitespace : ( ( event ) => string [] ) ; } = ...
Type declaration
is Alt And Control : ( ( event ) => ( "Alt" | "Control" ) [] )
( event ) : ( "Alt" | "Control" ) []
Returns ( "Alt" | "Control" ) []
is Alt And Shift : ( ( event ) => ( "Alt" | "Shift" ) [] )
( event ) : ( "Alt" | "Shift" ) []
Returns ( "Alt" | "Shift" ) []
is Alt Or Control : ( ( event ) => ( "Alt" | "Control" ) [] )
( event ) : ( "Alt" | "Control" ) []
Returns ( "Alt" | "Control" ) []
is Alt Or Shift : ( ( event ) => ( "Alt" | "Shift" ) [] )
( event ) : ( "Alt" | "Shift" ) []
Returns ( "Alt" | "Shift" ) []
is Control And Shift : ( ( event ) => ( "Control" | "Shift" ) [] )
( event ) : ( "Control" | "Shift" ) []
Returns ( "Control" | "Shift" ) []
is Control Or Shift : ( ( event ) => ( "Control" | "Shift" ) [] )
( event ) : ( "Control" | "Shift" ) []
Returns ( "Control" | "Shift" ) []
is Digit : ( ( event ) => default [] )
is Function Key : ( ( event ) => string [] )
( event ) : string []
Returns string []
is Letter : ( ( event ) => string [] )
( event ) : string []
Returns string []
is Lowercase Letter : ( ( event ) => string [] )
( event ) : string []
Returns string []
is Media Control : ( ( event ) => string [] )
( event ) : string []
Returns string []
is Meta And Control : ( ( event ) => ( "Control" | "Meta" ) [] )
( event ) : ( "Control" | "Meta" ) []
Returns ( "Control" | "Meta" ) []
is Meta And Shift : ( ( event ) => ( "Shift" | "Meta" ) [] )
( event ) : ( "Shift" | "Meta" ) []
Returns ( "Shift" | "Meta" ) []
is Meta Or Control : ( ( event ) => ( "Control" | "Meta" ) [] )
( event ) : ( "Control" | "Meta" ) []
Returns ( "Control" | "Meta" ) []
is Meta Or Shift : ( ( event ) => ( "Shift" | "Meta" ) [] )
( event ) : ( "Shift" | "Meta" ) []
Returns ( "Shift" | "Meta" ) []
is Modifier : ( ( event ) => any [] )
( event ) : any []
Returns any []
is Navigation Key : ( ( event ) => string [] )
( event ) : string []
Returns string []
is Non English Letter : ( ( event ) => string [] )
( event ) : string []
Returns string []
is Special Character : ( ( event ) => string [] )
( event ) : string []
Returns string []
is Uppercase Letter : ( ( event ) => string [] )
( event ) : string []
Returns string []
is Whitespace : ( ( event ) => string [] )
( event ) : string []
Returns string []
A collection of functions within the
KeysKey
object that assess special key group combinations in key events.The
SpecialCombos
object contains various methods to check for specific combinations of keys being pressed during aKeyEvent
. Each method takes aKeyEvent
as an argument and returns a boolean indicating whether the specific key combination is active.Usage Example:
KeysKey.SpecialCombos.isMetaAndShift(event)
Methods:
isAltAndControl(event: KeyEvent): KeysKey[] | undefined
isAltAndShift(event: KeyEvent): KeysKey[] | undefined
isAltKey(event: KeyEvent): KeysKey[] | undefined
isAltOrShift(event: KeyEvent): KeysKey[] | undefined
isControlAndShift(event: KeyEvent): KeysKey[] | undefined
isControlOrShift(event: KeyEvent): KeysKey[] | undefined
isDelete(event: KeyEvent): KeysKey[] | undefined
isDigit(event: KeyEvent): KeysKey[] | undefined
isFunctionKey(event: KeyEvent): KeysKey[] | undefined
isLetter(event: KeyEvent): KeysKey[] | undefined
isLowercaseLetter(event: KeyEvent): KeysKey[] | undefined
isMediaControl(event: KeyEvent): KeysKey[] | undefined
isMetaAndControl(event: KeyEvent): KeysKey[] | undefined
isMetaAndShift(event: KeyEvent): KeysKey[] | undefined
isMetaOrControl(event: KeyEvent): KeysKey[] | undefined
isMetaOrShift(event: KeyEvent): KeysKey[] | undefined
isModifier(event: KeyEvent): KeysKey[] | undefined
isNavigationKey(event: KeyEvent): KeysKey[] | undefined
isNonEnglishLetter(event: KeyEvent): KeysKey[] | undefined
isSpecialCharacter(event: KeyEvent): KeysKey[] | undefined
isUppercaseLetter(event: KeyEvent): KeysKey[] | undefined
isWhitespace(event: KeyEvent): KeysKey[] | undefined