Skip to main content

OverlayOptions

Electron APIs / Overlay / OverlayOptions

Configuration options for creating or modifying an overlay window.

Control over:

  • User input.
  • Window stacking.
  • Keyboard event handling.

Example

const options: OverlayOptions = {
passthrough: "mouseOnly",
zOrder: "alwaysOnTop",
ignoreKeyboardInput: true,
};

Extended by

Properties

PropertyTypeDescription
ignoreKeyboardInput?booleantrue—the overlay won't intercept keyboard input. Default false
passthrough?PassthroughTypeControls how input events are handled by the overlay window. Default 'noPassThrough' See PassthroughType.
zOrder?ZOrderTypeControls the Z-order (stacking order) of the overlay window relative to other window. Default 'default' See ZOrderType.