fix(tui): preserve legacy keybind lookup
This commit is contained in:
@@ -417,6 +417,9 @@ export type BindingLookupView = {
|
|||||||
readonly bindings: readonly Binding<Renderable, KeyEvent>[]
|
readonly bindings: readonly Binding<Renderable, KeyEvent>[]
|
||||||
get(command: string): readonly Binding<Renderable, KeyEvent>[]
|
get(command: string): readonly Binding<Renderable, KeyEvent>[]
|
||||||
has(command: string): boolean
|
has(command: string): boolean
|
||||||
|
gather(name: string, commands: readonly string[]): readonly Binding<Renderable, KeyEvent>[]
|
||||||
|
pick(name: string, commands: readonly string[]): Binding<Renderable, KeyEvent>[]
|
||||||
|
omit(name: string, commands: readonly string[]): Binding<Renderable, KeyEvent>[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export function toBindingConfig(keybinds: Keybinds): BindingConfig<Renderable, KeyEvent> {
|
export function toBindingConfig(keybinds: Keybinds): BindingConfig<Renderable, KeyEvent> {
|
||||||
|
|||||||
Reference in New Issue
Block a user