mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
4ef3e53de3
Xterm.js produces two kinds of events: onKey and onData. On a desktop, these are effectively the same, but on mobile, IME inputs produce data but not key presses. By listening to onData instead of onKey, we get that input. With some experimentation, I also found that we don't need the code to handle enter, home, end, or Ctrl-Shift-V. All of these function as expected without that code, so we can remove it and simplify this further. :^) |
||
---|---|---|
.. | ||
pty | ||
main.js |