<?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>137072</bug_id>
          
          <creation_ts>2014-09-24 12:40:44 -0700</creation_ts>
          <short_desc>iOS Hardware Keyboard events have ctrlKey = true set when CapsLock is on</short_desc>
          <delta_ts>2019-06-14 21:08:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 7.0</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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>
          
          <blocked>190571</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alan">areeve</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>areeve</cc>
    
    <cc>dbates</cc>
    
    <cc>enrica</cc>
    
    <cc>pkoszulinski</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1037008</commentid>
    <comment_count>0</comment_count>
    <who name="Alan">areeve</who>
    <bug_when>2014-09-24 12:40:44 -0700</bug_when>
    <thetext>When a hardware keyboard is connected to an iPad (Bluetooth or physically connected) and the keyboard has its CapsLock key on then keyboard events (keydown/keypress/keyup) detected via JavaScript all have the ctrlKey property as &apos;true&apos;. This has been tested on several iPads/keyboards and I am told this worked ok in iOS 6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1037111</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-09-24 18:26:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/18449540&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1037112</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-09-24 18:27:17 -0700</bug_when>
    <thetext>Could you please test on iOS 8?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1040073</commentid>
    <comment_count>3</comment_count>
    <who name="Alan">areeve</who>
    <bug_when>2014-10-07 11:53:43 -0700</bug_when>
    <thetext>Was finally able to test this on iOS 8 (8.0.2) and the result was the same. When the Caps-Lock key is on the ctrl key flag comes through as true in the javascript event. When Caps-Lock is off and the Ctrl key is pressed the ctrl key flag comes through as false.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1040282</commentid>
    <comment_count>4</comment_count>
    <who name="Piotrek Koszuliński (Reinmar)">pkoszulinski</who>
    <bug_when>2014-10-08 07:19:26 -0700</bug_when>
    <thetext>This issue affects CKEditor pretty badly (http://dev.ckeditor.com/ticket/12477). I guess that every application which has some keystrokes handling have the same problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1087929</commentid>
    <comment_count>5</comment_count>
    <who name="Alan">areeve</who>
    <bug_when>2015-04-23 12:33:05 -0700</bug_when>
    <thetext>I just tried on iOS 8.2 and this is STILL broken. Also tried on iOS 6.1 and it doesn&apos;t work there either so perhaps STILL broken is wrong and this never worked.

This is a major impediment to anyone trying to use a JavaScript based editor such as CKEditor on iOS. Any plans to fix this any time soon?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1464152</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2018-09-27 14:26:28 -0700</bug_when>
    <thetext>Alan, are you still able to reproduce this issue? I am not seeing this behavior on iOS 12 when I disable &quot;Switching Languages using Caps Lock&quot; (*) and testing using &lt;https://unixpapa.com/js/testkey.html&gt; with showing modifiers checked.

(*) Ensure a hardware keyboard is attached or paired and then open the Settings app and choose General &gt; Keyboards &gt; Hardware Keyboard. Then disable &quot;Switching Languages using Caps Lock&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544952</commentid>
    <comment_count>7</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2019-06-14 21:08:22 -0700</bug_when>
    <thetext>I am unable to reproduce this issue. Closing Resolved Configuration Changed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>