fix: change thinking level cycling from Ctrl+T to Shift+Tab

This commit is contained in:
Tino Ehrich 2025-11-19 18:07:53 +01:00
parent 5336843de8
commit ac34a810dd
2 changed files with 6 additions and 6 deletions

View file

@ -6,12 +6,12 @@ import { Editor } from "@mariozechner/pi-tui";
export class CustomEditor extends Editor {
public onEscape?: () => void;
public onCtrlC?: () => void;
public onCtrlT?: () => void;
public onShiftTab?: () => void;
handleInput(data: string): void {
// Intercept Ctrl+T for thinking level cycling
if (data === "\x14" && this.onCtrlT) {
this.onCtrlT();
// Intercept Shift+Tab for thinking level cycling
if (data === "\x1b[Z" && this.onShiftTab) {
this.onShiftTab();
return;
}