Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobile compatibility #40

Open
moore3071 opened this issue Aug 18, 2016 · 2 comments
Open

mobile compatibility #40

moore3071 opened this issue Aug 18, 2016 · 2 comments

Comments

@moore3071
Copy link

Currently on mobile (Android Marshmellow using Chrome or Firefox) the javascript seems to run fine (there is a blinking cursor), but the field is not accessible to input and the keyboard won't appear for input.

@sdether
Copy link
Owner

sdether commented Aug 18, 2016

The problem as far as I can tell is that mobile keyboards only show up when a textbox has focus. Since josh emulates its own input for the shell, it's just listening to keypresses, but mobile browsers do not know that.

@moore3071
Copy link
Author

That makes sense. Looking over the code I can only come up with one possible solution (and it's hacky).

It might be possible to have a text input field in the foreground over the console that sets readline to active when focused. Meanwhile js would intercept the input and pass it to readline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants