When editing an expression in any layer or effect property, the expression editor closes the moment focus shifts away from the input box — even if it’s something harmless like clicking an app menu or another window briefly coming to the front.
This makes it extremely frustrating to work with external code snippets or helper tools. For example, when selecting a code snippet from a menu or tool that inserts or pastes code, the editor immediately loses focus and the changes are lost.
Please consider improving this behavior so the expression editor stays open unless the user explicitly cancels or confirms the edit. Losing the editor on minor focus shifts severely breaks workflow for anyone using external snippet managers, utilities, or even just navigating the UI.