Skip to content

Commit 4f8feab

Browse files
fanoushthegecko
authored andcommitted
remove commented code
1 parent d5700f1 commit 4f8feab

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

examples/rtt/web.html

+4-7
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,10 @@
120120
const printable = !ev.altKey && !ev.ctrlKey && !ev.metaKey;
121121

122122
if (ev.keyCode === 13) { // process newline
123-
// allow empty lines too
124-
// if (line_input.length) {
125-
term.write('\r\n');
126-
cmd = line_input + "\r\n";
127-
console.log('sending: \"' + line_input + '\"');
128-
line_input = "";
129-
//}
123+
term.write('\r\n');
124+
cmd = line_input + "\r\n";
125+
console.log('sending: \"' + line_input + '\"');
126+
line_input = "";
130127
} else if (ev.keyCode === 8) { // process backspace
131128
if (term._core.buffer.x > 0) {
132129
term.write('\b \b');

0 commit comments

Comments
 (0)