import{Widget}from'../Widget.js';import{XWidget}from'../XWidget.js';export function focusChanged(event){const document=event.target&&event.target.ownerDocument;const element=document?document.deepActiveElement():null;Widget.focusWidgetForNode(element);XWidget.focusWidgetForNode(element);if(!UI._keyboardFocus){return;}
UI.markAsFocusedByKeyboard(element);}