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

ParameterTypeDescription
evtUserEvent | null(Optional)

Returns:

PaneType | boolean