fix: align CustomEditor with pi-tui Editor API
This commit is contained in:
@@ -15,7 +15,6 @@ export class CustomEditor extends Editor {
|
|||||||
constructor(theme: EditorTheme) {
|
constructor(theme: EditorTheme) {
|
||||||
super(theme);
|
super(theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInput(data: string): void {
|
handleInput(data: string): void {
|
||||||
if (matchesKey(data, Key.alt("enter")) && this.onAltEnter) {
|
if (matchesKey(data, Key.alt("enter")) && this.onAltEnter) {
|
||||||
this.onAltEnter();
|
this.onAltEnter();
|
||||||
|
|||||||
Reference in New Issue
Block a user