We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fc7ad5 commit 1b1c5c0Copy full SHA for 1b1c5c0
client/modules/IDE/components/Editor.jsx
@@ -347,7 +347,19 @@ class Editor extends React.Component {
347
showHint(_cm) {
348
const hintOptions = {
349
_fontSize: this.props.fontSize,
350
- completeSingle: false
+ completeSingle: false,
351
+ extraKeys: {
352
+ Tab: (cm, e) => {
353
+ const activeItem = document.querySelector(
354
+ `.CodeMirror-hint-active a`
355
+ );
356
+ if (activeItem) {
357
+ activeItem.click();
358
+ } else {
359
+ e.pick();
360
+ }
361
362
363
// completeOnSingleClick: false,
364
// closeOnUnfocus: false,
365
// closeOnPick: false
0 commit comments