@lvce-editor/title-bar-worker 4.18.0 → 4.18.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.
|
@@ -4968,14 +4968,8 @@ const handleFocus = async state => {
|
|
|
4968
4968
|
};
|
|
4969
4969
|
|
|
4970
4970
|
const handleFocusOut = async state => {
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
return closedState;
|
|
4974
|
-
}
|
|
4975
|
-
return {
|
|
4976
|
-
...closedState,
|
|
4977
|
-
focused: false
|
|
4978
|
-
};
|
|
4971
|
+
// The renderer process checks relatedTarget and closes the menu only when focus leaves the complete menu tree.
|
|
4972
|
+
return state;
|
|
4979
4973
|
};
|
|
4980
4974
|
|
|
4981
4975
|
const openMenu = async (state, focus) => {
|