Support mobile platforms
See original GitHub issueLately, I have been experimenting with coding with an iPad Pro with a Smart Keyboard on SourceLair.
The experience was buggy, but honestly it was much better than I expected.
One of the caveats (initially pointed out by @exsillium in a different PR) is that the arrows of the Smart Keyboard do not work at all on xterm.js.
It would be great if they did though 😄!
Initial discussion and PR with partial solution: https://github.com/sourcelair/xterm.js/pull/1065
Initial approach
At first we tried to fix this by detecting the keydown events of the Smart Keyboard and then handle them in xterm.
This did not work, as the only case where iOS fires consistently keyboard events on Smart Keyboard
arrow presses is the keydown
event, when the focus is on document.body
.
Potential solution
- Use the terminal’s hidden textarea
- Let iOS handle the keyboard event natively
- Detect the keyboard movement via selection change
Proof of Concept: How Ace editor handles this
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Which Mobile Platform Should I Support? | Blog
There are several mobile platforms to choose from, and you may be confused about which is the best for you. Therefore, we create...
Read more >Helpshift: In-App Mobile-First Customer Service Platform
Helpshift is a mobile-first customer service platform that delivers a superior in-app help experience for many of the world's top mobile apps and...
Read more >Supported web browsers and mobile platforms - Help Center
Mobile App. Phones. iOS phones (iPhone) and Android phones (Samsung Galaxy, LG, HTC, Motorola, etc.) are all supported devices ...
Read more >The Best 10 Mobile Help Desk Software in 2020 - HubSpot Blog
Discover the best mobile help desk software for your customer service ... Zoho is a help desk platform that includes a useful mobile...
Read more >Mobile platforms, frameworks & environments - e-Zest
e-Zest works across the mobile platforms, frameworks & environments, iOS, Android, BlackBerry OS, Windows Phone.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem still exists on android
Yeah, it would be great if we could get this working but I am afraid it’s going to get quirky.
I assigned this to myself and hopefully will put something up for the 3.3 release. Cheers 🍻