diff --git a/tabby-terminal/src/frontends/xtermFrontend.ts b/tabby-terminal/src/frontends/xtermFrontend.ts index 99eac0a3..b44a393f 100644 --- a/tabby-terminal/src/frontends/xtermFrontend.ts +++ b/tabby-terminal/src/frontends/xtermFrontend.ts @@ -138,9 +138,12 @@ export class XTermFrontend extends Frontend { } } + const oldKeyUp = this.xtermCore._keyUp this.xtermCore._keyUp = (e: KeyboardEvent) => { this.xtermCore.updateCursorStyle(e) - keyboardEventHandler('keyup', e) + if (keyboardEventHandler('keyup', e)) { + oldKeyUp(e) + } } this.xterm.buffer.onBufferChange(() => {