Implements submit on blur.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## Unrealeased
|
||||||
|
|
||||||
|
- Submits the expression when the expression input loses focus.
|
||||||
|
|
||||||
## 0.13.0
|
## 0.13.0
|
||||||
|
|
||||||
- Adds "debugVisualizer.debugAdapterConfigurations" config to customize the expression template.
|
- Adds "debugVisualizer.debugAdapterConfigurations" config to customize the expression template.
|
||||||
|
|||||||
@@ -82,6 +82,10 @@ export class ExpressionInput extends React.Component<{ model: Model }> {
|
|||||||
this.contentHeight = e.contentHeight;
|
this.contentHeight = e.contentHeight;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.editor.onDidBlurEditorText(() => {
|
||||||
|
this.submit();
|
||||||
|
});
|
||||||
|
|
||||||
this.editor.onKeyDown(e => {
|
this.editor.onKeyDown(e => {
|
||||||
if (e.keyCode == monaco.KeyCode.Enter) {
|
if (e.keyCode == monaco.KeyCode.Enter) {
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user