ensure xterm's own _keyUp is getting called

This commit is contained in:
Eugene Pankov 2022-03-14 15:31:06 +01:00
parent a5d84a490f
commit 7508c371df
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -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(() => {