Share via


OverridableShortcutHandler type

A handler must return true when it wants to consume the shortcut (i.e. prevent forwarding to host). Any other return value forwards it.

type OverridableShortcutHandler = (
  event: KeyboardEvent,
  data: OverridableShortcutHandlerData
) => boolean