diff options
| author | Shoubhit Dash <[email protected]> | 2026-03-23 13:30:24 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-23 08:00:24 +0000 |
| commit | 0f5626d2e46f9f8abfe616a33a4fd4f4d989e396 (patch) | |
| tree | 4de359e69cd4606af00f5ca91b83510cabe6fbfe /packages/app/src/context/command-keybind.test.ts | |
| parent | 5ea95451dd485b15696877a9dd82c30a532b68e0 (diff) | |
| download | opencode-0f5626d2e46f9f8abfe616a33a4fd4f4d989e396.tar.gz opencode-0f5626d2e46f9f8abfe616a33a4fd4f4d989e396.zip | |
fix(app): prefer cmd+k for command palette (#18731)
Diffstat (limited to 'packages/app/src/context/command-keybind.test.ts')
| -rw-r--r-- | packages/app/src/context/command-keybind.test.ts | 7 |
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) + }) }) |
