瀏覽代碼

fix(tui): preserve legacy keybind lookup

Dax Raad 1 月之前
父節點
當前提交
b2741d2f97
共有 1 個文件被更改,包括 3 次插入0 次删除
  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> {