Skip to content

Commit 1abe682

Browse files
javier-godoypaodb
authored andcommitted
fix: fix regression in xterm 4.15
Attaching a customKeyHandler prevented the typed character from being printed. Close #59
1 parent 72c1930 commit 1abe682

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/resources/META-INF/frontend/fc-xterm/xterm-element.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ class CustomKeyEventHandlerRegistry {
9797
context.dispatchEvent(new CustomEvent('CustomKey', {detail: ev}));
9898
}
9999

100+
//https://github.com/FlowingCode/XTermConsoleAddon/issues/59
101+
let core = (context.terminal as any)._core as ITerminal;
102+
(core as any)._keyDownSeen = false;
100103
return handled;
101104
}
102105

0 commit comments

Comments
 (0)