fix(desktop): better keybind tooltips

This commit is contained in:
Adam 2025-12-21 04:56:20 -06:00
commit 673c6f97b7
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
5 changed files with 100 additions and 29 deletions

View file

@ -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))