<?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>114648</bug_id>
          
          <creation_ts>2013-04-15 16:12:49 -0700</creation_ts>
          <short_desc>Regression: Non-default buttons can be activated with Return/Enter keys on Mac; this behavior should be limited to Windows</short_desc>
          <delta_ts>2014-02-07 11:29:15 -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>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="James Craig">jcraig</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>876116</commentid>
    <comment_count>0</comment_count>
      <attachid>198200</attachid>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-04-15 16:12:49 -0700</bug_when>
    <thetext>Created attachment 198200
test case demonstrating bug

Regression since filing of bug 14382.

Regression: Non-default buttons can be activated with Return/Enter keys on Mac; this behavior should be limited to Windows. At some point, the Windows bug 14382 was fixed, which regressed Mac behavior. It&apos;s expected that non-default buttons on Mac OS X are activated by pressing spacebar, not Return (or Enter). Windows defaults to using Enter for everything and, AFAICT, there is no way to activate a default button on Windows unless it&apos;s explicitly focused first.

Load attached test case. 

Mac: Only spacebar should activate the button, not Return or Enter (fn+Return). 

Win: Enter key should activate the button on Windows. I&apos;m not sure if it&apos;s a problem for spacebar o activate it too, so I&apos;d suggest leaving that behavior unless we hear otherwise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>977939</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-02-07 11:29:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/16014045&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>198200</attachid>
            <date>2013-04-15 16:12:49 -0700</date>
            <delta_ts>2013-04-15 16:12:49 -0700</delta_ts>
            <desc>test case demonstrating bug</desc>
            <filename>button.html</filename>
            <type>text/html</type>
            <size>44</size>
            <attacher name="James Craig">jcraig</attacher>
            
              <data encoding="base64">PGJ1dHRvbiBvbmNsaWNrPSJhbGVydCgnZm9vJyk7Ij5mb288L2J1dHRvbj4=
</data>

          </attachment>
      

    </bug>

</bugzilla>