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

iOS 18 requires text input focus before accepting key events #1492

Open
3 tasks done
adammeyer opened this issue Oct 3, 2024 · 2 comments
Open
3 tasks done

iOS 18 requires text input focus before accepting key events #1492

adammeyer opened this issue Oct 3, 2024 · 2 comments
Labels
webkit bug Bugs that originate upstream in Apple's WebKit implementation

Comments

@adammeyer
Copy link

Bug Report

Problem

What is expected to happen?

Using a bluetooth keyboard, app should accept keyboard events at anytime. Example, arrow keys.

What does actually happen?

Since iOS18, focus on text input is required to "activate" key events. After initial focus in any text input, key events work again throughout the app. This isn't an issue in Safari on iOS 18.

Information

Spin up a new app with https://keyevents.netlify.app/. Picks up key events in iOS 17, does not in iOS 18.

Command or Code

Environment, Platform, Device

iPad, iOS 18

Version information

iOS 18,
Cordova iOS 7.1.1

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@dpogue dpogue added the webkit bug Bugs that originate upstream in Apple's WebKit implementation label Oct 3, 2024
@dpogue
Copy link
Member

dpogue commented Oct 3, 2024

I believe this has been fixed upstream in WebKit now (after a few attempts due to visionOS issues).

For those curious:

Hopefully this will roll out as part of iOS 18.1, unfortunately I don't believe there's anything Cordova can do to address the problem on our side.

I'll leave this issue open for now, and we can reevaluate once iOS 18.1 is released to see if it's resolved or not.

@adammeyer
Copy link
Author

Confirmed issue still exists in iOS 18.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webkit bug Bugs that originate upstream in Apple's WebKit implementation
Projects
None yet
Development

No branches or pull requests

2 participants