fix(ci): align skills api drift and tui keybindings

This commit is contained in:
Peter Steinberger
2026-03-27 23:18:07 +00:00
parent 5d82534af7
commit a27624437e
11 changed files with 51 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
import type { Component } from "@mariozechner/pi-tui";
import {
getEditorKeybindings,
getKeybindings,
Input,
matchesKey,
type SelectItem,
@@ -110,8 +110,8 @@ export class FilterableSelectList implements Component {
}
// Escape: clear filter or cancel
const keybindings = getEditorKeybindings();
if (keybindings.matches(keyData, "selectCancel")) {
const keybindings = getKeybindings();
if (keybindings.matches(keyData, "tui.select.cancel")) {
if (this.filterText) {
this.filterText = "";
this.input.setValue("");

View File

@@ -1,6 +1,6 @@
import {
type Component,
getEditorKeybindings,
getKeybindings,
Input,
isKeyRelease,
matchesKey,
@@ -362,8 +362,8 @@ export class SearchableSelectList implements Component {
return;
}
const keybindings = getEditorKeybindings();
if (keybindings.matches(keyData, "selectCancel")) {
const keybindings = getKeybindings();
if (keybindings.matches(keyData, "tui.select.cancel")) {
if (this.onCancel) {
this.onCancel();
}