<?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>199475</bug_id>
          
          <creation_ts>2019-07-03 16:07:24 -0700</creation_ts>
          <short_desc>[iOS] Cannot preventDefault() in keypress to prevent Command + A</short_desc>
          <delta_ts>2024-01-18 02:58:04 -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>WebKit Local Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=199257</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=30397</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>190571</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Bates">dbates</reporter>
          <assigned_to name="Daniel Bates">dbates</assigned_to>
          <cc>karlcow</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1550064</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2019-07-03 16:07:24 -0700</bug_when>
    <thetext>Steps to reproduce:

1. Visit &lt;https://unixpapa.com/js/testkey.html&gt;

If you have a build with the fix for bug #199257 then:
2. Ensure default handling of keypress is suppressed.
3. Press Command + A

Otherwise:
2. Press some keys, like a, b, c.
3. Ensure default handling of keypress is suppressed.
4. Focus the text field.
5. Press Command + A

Then the content of the page (if you have the fix for bug #199257) or briefly the contents of the field will be selected. But Command + A should have been selected. Compare to Mac.

Note, Command + A can be prevented from keydown on iOS.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>