blockly > ReturnEphemeralFocus
ReturnEphemeralFocus type
Type declaration for returning focus to FocusManager upon completing an ephemeral UI flow (such as a dialog). Normally, the FocusManager will refocus the previously-focused element. If callers do not wish for the FocusManager to do so, they may call this method with restoreFocus set to false to prevent automatic refocusing and leave focus where it is.
See FocusManager.takeEphemeralFocus for more details.
Signature:
export type ReturnEphemeralFocus = (restoreFocus?: boolean) => void;