feat(ui): route Ctrl+F search by focused surface

This commit is contained in:
zipg authored and GitHub committed 2026-09-15 23:20:05 +08:00
1 parent 4c80d16e26
commit 3c8ae159fb
23 files changed
+233 -56

No files matched your search

@@ -30,6 +30,10 @@ describe("resolveSqlShortcutTemplate", () => {
});
});
afterEach(() => {
vi.unstubAllGlobals();
});
describe("enabledSqlShortcutActions", () => {
it("filters disabled and unbound actions", () => {
const actions = [action("a", "Mod+1"), action("b", "", { enabled: true }), action("c", "Mod+2", { enabled: false })];
@@ -104,6 +108,7 @@ describe("normalizeSqlShortcuts", () => {
});
it("keeps Ctrl+H on non-mac platforms where it is a legitimate SQL shortcut", async () => {
vi.stubGlobal("navigator", { platform: "Win32" });
const { normalizeEditorSettings } = await import("@/stores/settingsStore");
const normalized = normalizeEditorSettings({
sqlShortcuts: [action("h", "Mod+H")],