Allow tab press to autocomplete (#1150)
parent
6ba28e0a95
commit
3132d9e9f2
|
@ -7,6 +7,7 @@ import {
|
||||||
standardKeymap,
|
standardKeymap,
|
||||||
} from "@codemirror/commands";
|
} from "@codemirror/commands";
|
||||||
import {
|
import {
|
||||||
|
acceptCompletion,
|
||||||
autocompletion,
|
autocompletion,
|
||||||
closeBrackets,
|
closeBrackets,
|
||||||
closeBracketsKeymap,
|
closeBracketsKeymap,
|
||||||
|
@ -381,6 +382,7 @@ export function createKeyBindings(client: Client): Extension {
|
||||||
]
|
]
|
||||||
: standardKeymap,
|
: standardKeymap,
|
||||||
...completionKeymap,
|
...completionKeymap,
|
||||||
|
{ key: "Tab", run: acceptCompletion },
|
||||||
indentWithTab,
|
indentWithTab,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue