Skip to content

Keymap.isModEvent method

Keymap › isModEvent

Official

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:

isModEvent(evt?: UserEvent | null | undefined): PaneType | boolean

Parameters:

Parameter Type Description
evt? UserEvent | null | undefined *(Optional)*

Returns: PaneType | boolean

Since: 0.16.0