Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 916 Bytes

File metadata and controls

46 lines (34 loc) · 916 Bytes
id api-reference-key-binding-util
title KeyBindingUtil

The KeyBindingUtil module is a static set of utility functions for defining key bindings.

Static Methods

isCtrlKeyCommand

isCtrlKeyCommand: function(
  e: SyntheticKeyboardEvent
): boolean

Check whether the ctrlKey modifier is not being used in conjunction with the altKey modifier. If they are combined, the result is an altGraph key modifier, which is not handled by this set of key bindings.

isOptionKeyCommand

isOptionKeyCommand: function(
  e: SyntheticKeyboardEvent
): boolean

usesMacOSHeuristics

usesMacOSHeuristics: function(): boolean

Check whether heuristics that only apply to macOS are used internally, for example when determining the key combination used as command modifier.

hasCommandModifier

hasCommandModifier: function(
  e: SyntheticKeyboardEvent
): boolean