Keymap class
Manages keymap lifecycle for different Scopes.
Signature:
export class Keymap
Methods
Method | Modifiers | Description |
---|---|---|
isModEvent(evt) | static | Translates 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) | static | Checks 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. |