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.

iOS 13 - Bluetooth keyboard arrow keys not working

See original GitHub issue

Bug Report

Problem

The arrow keys (UP, DOWN, LEFT, RIGHT) of the external bluetooth keyboard do not work in iOS 13. It was working fine in earlier versions. Other keys are working fine.

Note that, the arrow keys work fine in other iOS native apps. Also, the issue exists only with the UIWebView. The WKWebView works fine.

What is expected to happen?

The Arrow keys of the external keyboard should work fine.

What does actually happen?

The Arrow keys of the external keyboard are not working.

Information

I see the following console error in Xcode when I press one of the arrow keys.

2019-09-17 16:06:08.114428-0500 My_APP_NAME[375:30929] -[UIThreadSafeNode canPerformAction:withSender:]: unrecognized selector sent to instance 0x283523040
2019-09-17 16:06:08.115002-0500 My_APP_NAME[375:30929] *** WebKit discarded an uncaught exception in the handleKeyTextCommandForCurrentEvent delegate: <NSInvalidArgumentException> -[UIThreadSafeNode canPerformAction:withSender:]: unrecognized selector sent to instance 0x283523040

Environment, Platform, Device

Cordova : 9.0.0 Xcode : 11.0 iPad : iOS 13.1
NodeJS : v10.14.2 npm : 6.4.1 OS : macOS Mojave

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
breautekcommented, Oct 11, 2019

Does this project use UIWebView? I’m seeing a similar issue on my UIWebView app. Replacing UIWebView with WKWebView seems to solve the issue.

The default webview for cordova-ios is the UIWebView. WKWebView will be the new default sometime soon since UIWebView is deprecated.

0reactions
shortercodecommented, Jan 14, 2020

I appear to also be having this issue with WKWebView on ipados 13.2.3. Confirmed that it was WKWebView using the “debug view hierarchy” tool in xcode.

Did anyone file a report about this with Apple?

EDIT: this is with a document level event listener, with no input elements. I have discovered that by adding a <input type="button> and having the user click it will cause events to trigger at a global level again. However, manually focusing the element using .focus() is not sufficient.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arrow keys suddenly stop working ! - Apple Community
Arrow keys suddenly stop working ! ; 1. Restart your iPad ; 2. Update your iPhone, iPad, or iPod touch ; 3. Quit...
Read more >
iPadOS 14 external keyboard arrow keys issues - Ask Different
It's awesome, but I have one issue. When I use the arrow keys, it doesn't let me navigate text with the arrow keys....
Read more >
iPad Pro 11 inch 2018 w/ Magic Keyboard. Issues with left and ...
Issues with left and right arrow keys not working in YouTube app (specifically using left and right arrow keys to fast forward or...
Read more >
Arrow keys not working on iPad Pro Magic Keyboard
However the arrow keys do not work. All the other shortcuts are functioning well, including the CMD+arrow key combinations. It's just the pure...
Read more >
My iPad Pro keyboard's arrow keys stopped working
We would like to inform you that due to some iOS related issues, the app doesn't respond when you are connected with a...
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