Puter Terminal does not accept mobile input
I tried using the terminal on my mobile but it did not appear to recognise any keystrokes, apart from enter strangely enough. See attached video.
https://youtube.com/shorts/x1d9PGj1Vb4?si=tPZc-9rBY5SfhvK0
Hi @Jeklah, thanks for reporting this. This is a problem with xterm.js, we're gonna look into a workaround.
@AtkinsSJ @KernelDeimos could you look into this?
:thinking: I get this problem in Chrome but not in Firefox.
EDIT: Firefox has its own issues though.
OK so my understanding of what's happening is:
- User types something. Let's go with
a. - Chrome emits a keyDown event with the 229 keycode, meaning that the user is in IME mode.
- xterm sets
_keyDownSeento true. - Phoenix gets the keyDown event but can't do anything useful with it.
- Chrome emits an input event with the
adata. - Because
_keyDownSeenis true, xterm ignores it, even though this is the event we want! - Chrome emits a keyUp event with the 229 keycode.
- xterm sets
_keyDownSeento false. - Phoenix gets the keyUp event but can't do anything useful with it.
I don't know how we would work around this, other than actually fixing xterm.js. It does look like xterm is supposed to handle IMEs, just something is causing it to not recognise that we're in composition mode.
I just tried testing this in Firefox, the website came up but I was unable to login...is it down temporarily at the moment? I couldn't even get onto the website on Chrome.
One difference I did notice, whether it'll make the difference between the issue being seen on Chrome and not FF I'm not sure, but FF opened up puter.com with https while Chrome did not.
Will check again later to see if site is back up and will check both browsers.
@Jeklah Yes unfortunately we were down. I just tried Chrome, Safari, and FF on iOS and they all worked.
@AtkinsSJ shall we... fix xterm.js? :)
@AtkinsSJ shall we... fix xterm.js? :)
I'll add that to my list! 🦬➕