fix(desktop): better keybind tooltips
This commit is contained in:
parent
ec46f71258
commit
673c6f97b7
5 changed files with 100 additions and 29 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue