fix(app): prefer cmd+k for command palette (#18731)

This commit is contained in:
Shoubhit Dash
2026-03-23 13:30:24 +05:30
committed by GitHub
parent 5ea95451dd
commit 0f5626d2e4
5 changed files with 21 additions and 5 deletions

View File

@@ -40,4 +40,11 @@ describe("command keybind helpers", () => {
expect(display.includes("Alt") || display.includes("⌥")).toBe(true)
expect(formatKeybind("none")).toBe("")
})
test("formatKeybind prefers the first combo", () => {
const display = formatKeybind("mod+k,mod+p")
expect(display.includes("K") || display.includes("k")).toBe(true)
expect(display.includes("P") || display.includes("p")).toBe(false)
})
})