fix(app): prefer cmd+k for command palette (#18731)
This commit is contained in:
parent
5ea95451dd
commit
0f5626d2e4
5 changed files with 21 additions and 5 deletions
|
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue