summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/context/command-keybind.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/app/src/context/command-keybind.test.ts')
-rw-r--r--packages/app/src/context/command-keybind.test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/app/src/context/command-keybind.test.ts b/packages/app/src/context/command-keybind.test.ts
index 4e38efd8d..d804195c4 100644
--- a/packages/app/src/context/command-keybind.test.ts
+++ b/packages/app/src/context/command-keybind.test.ts
@@ -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)
+ })
})