Parcourir la source

fix(tui): preserve legacy keybind lookup

Dax Raad il y a 1 mois
Parent
commit
b2741d2f97
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      packages/tui/src/config/v1/keybind.ts

+ 3 - 0
packages/tui/src/config/v1/keybind.ts

@@ -417,6 +417,9 @@ export type BindingLookupView = {
   readonly bindings: readonly Binding<Renderable, KeyEvent>[]
   get(command: string): readonly Binding<Renderable, KeyEvent>[]
   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> {