question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support mobile platforms

See original GitHub issue

Lately, 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

https://github.com/ajaxorg/ace/blob/eb2437badf4013893e15cb873057607c09cc95ae/lib/ace/keyboard/textinput_ios.js#L483-L526

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
luxi78commented, Jan 17, 2022

The problem still exists on android

video_2022-01-17_17-20-33

3reactions
pariskcommented, Mar 7, 2018

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 🍻

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found