fix(editor): honor configured shortcut precedence

This commit is contained in:
t8y2 committed 2026-07-27 16:06:34 +08:00
1 parent ed47877723
commit 267310ced1
3 files changed
+25 -8

No files matched your search

@@ -1371,6 +1371,11 @@ function runKeymapExtension(codeMirrorKeymap: (typeof import("@codemirror/view")
if (sql.trim()) emit("sendSelectionToAi", sql);
return true;
}),
...createQueryEditorSearchKeymap({
openSearch,
openReplace,
isReadOnly: () => !!props.readOnly,
}),
]),
) ?? [],
codeMirrorKeymap.of(
@@ -3731,11 +3736,6 @@ onMounted(async () => {
buildResultSourceRangeExtension(),
Prec.highest(
keymap.of([
...createQueryEditorSearchKeymap({
openSearch,
openReplace,
isReadOnly: () => !!props.readOnly,
}),
{ key: "'", run: handleSqlSingleQuote },
{ key: "Tab", run: handleTab },
{