diff options
| author | Adam <[email protected]> | 2025-12-21 04:56:20 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-21 04:56:20 -0600 |
| commit | 673c6f97b75d05ebf37cf20462f1fa8298b0b66b (patch) | |
| tree | 0281d89f95a0952fcc5d0128ebf28a388a508f1f /packages/desktop/src/context | |
| parent | ec46f71258179df3bb373d82b4439caa205cd9fa (diff) | |
| download | opencode-673c6f97b75d05ebf37cf20462f1fa8298b0b66b.tar.gz opencode-673c6f97b75d05ebf37cf20462f1fa8298b0b66b.zip | |
fix(desktop): better keybind tooltips
Diffstat (limited to 'packages/desktop/src/context')
| -rw-r--r-- | packages/desktop/src/context/command.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/desktop/src/context/command.tsx b/packages/desktop/src/context/command.tsx index 8fd76ee21..362f35b97 100644 --- a/packages/desktop/src/context/command.tsx +++ b/packages/desktop/src/context/command.tsx @@ -226,6 +226,11 @@ export const { use: useCommand, provider: CommandProvider } = createSimpleContex } } }, + keybind(id: string) { + const option = options().find((x) => x.id === id || x.id === "suggested." + id) + if (!option?.keybind) return "" + return formatKeybind(option.keybind) + }, show: showPalette, keybinds(enabled: boolean) { setSuspendCount((count) => count + (enabled ? -1 : 1)) |
