mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-26 00:21:59 +00:00
fix(ci): align skills api drift and tui keybindings
This commit is contained in:
@@ -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("");
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user