<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>206887</bug_id>
          
          <creation_ts>2020-01-28 09:25:30 -0800</creation_ts>
          <short_desc>Keyboard input doesn&apos;t work in WKWebView</short_desc>
          <delta_ts>2024-02-19 17:16:26 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>Safari 13</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 13</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=269292</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ashley Gullen">ashley</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dbates</cc>
    
    <cc>megan_gardner</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1611986</commentid>
    <comment_count>0</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2020-01-28 09:25:30 -0800</bug_when>
    <thetext>Using a keyboard attachment to an iPad.

&quot;keydown&quot; events never fire in WKWebView if you preventDefault() on &quot;touchstart&quot; 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 &quot;touchstart&quot;, it starts working again in WKWebView. However we need to call preventDefault() for other reasons. It shouldn&apos;t block keyboard input. It works correctly in Safari, only WKWebView is blocking keyboard input.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612002</commentid>
    <comment_count>1</comment_count>
    <who name="Ashley Gullen">ashley</who>
    <bug_when>2020-01-28 09:44:43 -0800</bug_when>
    <thetext>Just to clarify - this report pertains to a physical keyboard, not the on-screen keyboard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612662</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-29 13:58:46 -0800</bug_when>
    <thetext>&lt;rdar://problem/59005584&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>