Skip to content

Commit

Permalink
Allow tab press to autocomplete (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-shenoy authored Nov 13, 2024
1 parent 6ba28e0 commit 3132d9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/editor_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
standardKeymap,
} from "@codemirror/commands";
import {
acceptCompletion,
autocompletion,
closeBrackets,
closeBracketsKeymap,
Expand Down Expand Up @@ -381,6 +382,7 @@ export function createKeyBindings(client: Client): Extension {
]
: standardKeymap,
...completionKeymap,
{ key: "Tab", run: acceptCompletion },
indentWithTab,
]);
}

0 comments on commit 3132d9e

Please sign in to comment.