From 3132d9e9f2599bd6b49d7d9bac69b89db795aa10 Mon Sep 17 00:00:00 2001 From: Vighnesh Shenoy Date: Thu, 14 Nov 2024 01:45:40 +0530 Subject: [PATCH] Allow tab press to autocomplete (#1150) --- web/editor_state.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/editor_state.ts b/web/editor_state.ts index 87eef9a4..835bd06d 100644 --- a/web/editor_state.ts +++ b/web/editor_state.ts @@ -7,6 +7,7 @@ import { standardKeymap, } from "@codemirror/commands"; import { + acceptCompletion, autocompletion, closeBrackets, closeBracketsKeymap, @@ -381,6 +382,7 @@ export function createKeyBindings(client: Client): Extension { ] : standardKeymap, ...completionKeymap, + { key: "Tab", run: acceptCompletion }, indentWithTab, ]); }