Skip to content

Commit 381e7c5

Browse files
javier-godoymlopezFC
authored andcommitted
fix: avoid additional space when space key is pressed
Close #16
1 parent 2d3d9ba commit 381e7c5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,7 @@ export class XTermElement extends LitElement implements TerminalMixin {
155155
this.customKeyEventHandlers.handle(this, ev);
156156
if (ev.cancelBubble) return false;
157157

158-
if (ev.key==' ') {
159-
term.write(' ');
160-
return false;
161-
} else {
162-
return true;
163-
}
164-
158+
return true;
165159
});
166160
}
167161

0 commit comments

Comments
 (0)