Keymap
โบ isModEvent
Keymap.isModEvent() method
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.
Signature:
static isModEvent(evt?: UserEvent | null): PaneType | boolean;
Parameters
Parameter | Type | Description |
---|---|---|
evt | UserEvent | null | (Optional) |
Returns:
PaneType
| boolean