Keymap

Keymap class

Manages keymap lifecycle for different Scopes.

Signature:

export class Keymap 

Methods

MethodModifiersDescription
isModEvent(evt)staticTranslates an event into the type of pane that should open. Returns โ€˜tabโ€™ if the modifier key Cmd/Ctrl is pressed OR if this is a middle-click MouseEvent. Returns โ€˜splitโ€™ if Cmd/Ctrl+Alt is pressed. Returns โ€˜windowโ€™ if Cmd/Ctrl+Alt+Shift is pressed.
isModifier(evt, modifier)staticChecks whether the modifier key is pressed during this event.
popScope(scope)Remove a scope from the scope stack. If the given scope is active, the next scope in the stack will be made active.
pushScope(scope)Push a scope onto the scope stack, setting it as the active scope to handle all key events.