@lvce-editor/title-bar-worker 4.20.0 → 4.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/titleBarWorkerMain.js +14 -2
- package/package.json +1 -1
|
@@ -4976,8 +4976,20 @@ const handleFocus = async state => {
|
|
|
4976
4976
|
};
|
|
4977
4977
|
|
|
4978
4978
|
const handleFocusOut = async state => {
|
|
4979
|
-
|
|
4980
|
-
|
|
4979
|
+
const {
|
|
4980
|
+
isMenuOpen
|
|
4981
|
+
} = state;
|
|
4982
|
+
if (isMenuOpen) {
|
|
4983
|
+
return state;
|
|
4984
|
+
}
|
|
4985
|
+
const closedState = closeMenu(state, /* keepFocus */false);
|
|
4986
|
+
if (!closedState.focused) {
|
|
4987
|
+
return closedState;
|
|
4988
|
+
}
|
|
4989
|
+
return {
|
|
4990
|
+
...closedState,
|
|
4991
|
+
focused: false
|
|
4992
|
+
};
|
|
4981
4993
|
};
|
|
4982
4994
|
|
|
4983
4995
|
const openMenu = async (state, focus) => {
|