WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
206887
Keyboard input doesn't work in WKWebView
https://bugs.webkit.org/show_bug.cgi?id=206887
Summary
Keyboard input doesn't work in WKWebView
Ashley Gullen
Reported
2020-01-28 09:25:30 PST
Using a keyboard attachment to an iPad. "keydown" events never fire in WKWebView if you preventDefault() on "touchstart" events. Minimal repro:
https://www.scirra.com/labs/bugs/keypresses.html
Steps to reproduce: 1. Set up device with keyboard 2. View URL in Safari. Press a key. Observe keyboard input. 3. View URL in WKWebView. Press a key. Expected: also receive keyboard input Observed: no keyboard input received If we remove the call to preventDefault() in "touchstart", it starts working again in WKWebView. However we need to call preventDefault() for other reasons. It shouldn't block keyboard input. It works correctly in Safari, only WKWebView is blocking keyboard input.
Attachments
Add attachment
proposed patch, testcase, etc.
Ashley Gullen
Comment 1
2020-01-28 09:44:43 PST
Just to clarify - this report pertains to a physical keyboard, not the on-screen keyboard.
Radar WebKit Bug Importer
Comment 2
2020-01-29 13:58:46 PST
<
rdar://problem/59005584
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug