Skip to content

Commit 3036778

Browse files
committed
fix(ui): allow tab button to take effect while using editor
1 parent 546d547 commit 3036778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: ui/src/components/inputs/Editor.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
schemaType: {type: String, default: undefined},
9898
navbar: {type: Boolean, default: true},
9999
input: {type: Boolean, default: false},
100+
keepFocused: {type: Boolean, default: undefined},
100101
fullHeight: {type: Boolean, default: true},
101102
customHeight: {type: Number, default: 7},
102103
theme: {type: String, default: undefined},
@@ -324,7 +325,7 @@
324325
325326
// TabFocus is global to all editor so revert the behavior on non inputs
326327
this.editor.onDidFocusEditorText?.(() => {
327-
TabFocus.setTabFocusMode(this.input);
328+
TabFocus.setTabFocusMode(this.keepFocused === undefined ? this.input : false);
328329
});
329330
330331
if (this.input) {

0 commit comments

Comments
 (0)