11 lines
365 B
TypeScript
11 lines
365 B
TypeScript
type CommandKeybind = {
|
|
keybindParts: (id: string) => string[]
|
|
}
|
|
|
|
export function reviewTooltipKeybind(command: CommandKeybind, _translate?: (key: string) => string) {
|
|
return command.keybindParts("review.toggle")
|
|
}
|
|
|
|
export function newTabTooltipKeybind(command: CommandKeybind, _translate?: (key: string) => string) {
|
|
return command.keybindParts("tab.new")
|
|
}
|