Skip to content

Commit 411fa55

Browse files
committed
update tab function
1 parent 1b1c5c0 commit 411fa55

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

client/modules/IDE/components/Editor.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ class Editor extends React.Component {
194194
});
195195

196196
this._cm.on('keydown', (_cm, e) => {
197+
console.log(e);
197198
if (
198199
((metaKey === 'Cmd' && e.metaKey) ||
199200
(metaKey === 'Ctrl' && e.ctrlKey)) &&
@@ -354,14 +355,14 @@ class Editor extends React.Component {
354355
`.CodeMirror-hint-active a`
355356
);
356357
if (activeItem) {
357-
activeItem.click();
358+
activeItem.focus();
358359
} else {
359360
e.pick();
360361
}
361362
}
362-
}
363+
},
364+
closeOnUnfocus: false
363365
// completeOnSingleClick: false,
364-
// closeOnUnfocus: false,
365366
// closeOnPick: false
366367
};
367368

0 commit comments

Comments
 (0)