Skip to content

Commit

Permalink
Merge pull request #7 from skanehira/fix-multibyte-input
Browse files Browse the repository at this point in the history
Fix cannot input janapense #6
  • Loading branch information
skanehira authored Jul 23, 2021
2 parents d3f8fb7 + c1eb009 commit 25be814
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
};

socket.send(JSON.stringify(initData));
terminal.onKey((e) => {
socket.send(e.key);
});
terminal.onData(data => {
socket.send(data);
})

socket.onclose = () => {
terminal.writeln('[Disconnected]')
Expand Down

0 comments on commit 25be814

Please sign in to comment.