Implements submit on blur.

This commit is contained in:
Henning Dieterichs
2020-03-18 19:45:02 +01:00
parent fdab706e4e
commit 39768ec09a
2 changed files with 8 additions and 0 deletions

View File

@@ -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.

View File

@@ -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 (