diff --git a/extension/CHANGELOG.md b/extension/CHANGELOG.md index 314e778..26e6ccf 100644 --- a/extension/CHANGELOG.md +++ b/extension/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## Unrealeased + +- Submits the expression when the expression input loses focus. + ## 0.13.0 - Adds "debugVisualizer.debugAdapterConfigurations" config to customize the expression template. diff --git a/webview/src/components/ExpressionInput.tsx b/webview/src/components/ExpressionInput.tsx index 7619fb8..2a19eeb 100644 --- a/webview/src/components/ExpressionInput.tsx +++ b/webview/src/components/ExpressionInput.tsx @@ -82,6 +82,10 @@ export class ExpressionInput extends React.Component<{ model: Model }> { this.contentHeight = e.contentHeight; }); + this.editor.onDidBlurEditorText(() => { + this.submit(); + }); + this.editor.onKeyDown(e => { if (e.keyCode == monaco.KeyCode.Enter) { if (