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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27337</bug_id>
          
          <creation_ts>2014-11-16 02:15:53 +0000</creation_ts>
          <short_desc>For synthetic activation, should the original event still be dispatched?</short_desc>
          <delta_ts>2015-10-07 04:25:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - UI Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Manish Goregaokar">manishearth</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>annevk</cc>
    
    <cc>garykac</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114973</commentid>
    <comment_count>0</comment_count>
    <who name="Manish Goregaokar">manishearth</who>
    <bug_when>2014-11-16 02:15:53 +0000</bug_when>
    <thetext>&quot;If the instance of the activation trigger is not an event of event type click (that is, when it does not result from a user&apos;s activation of a button or link using a mouse or equivalent pointing device), the implementation MUST synthesize and dispatch an event of event type click as one of the default actions of that activation trigger. The value of the Event.target MUST be set to the event target (normally, the currently focused element), and the event MUST simulate a left click (i.e., the MouseEvent.button attribute value MUST be 0, and the MouseEvent.buttons attribute value MUST be 1). Other context information of such a simulated click event is implementation dependent, but for historical purposes, the interface for the click event MUST be the MouseEvent interface, regardless of the actual device used to activate the element. Preventing the default action of the activation trigger, such as with the Event.preventDefault(), MUST stop the initiation of the activation behavior.&quot;

This isn&apos;t clear as to what we&apos;re supposed to do with the original event. 

For example, if the user hits enter on a form control, should we also dispatch keyboard events for the enter key, or only a mouse click event?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114999</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-17 13:05:12 +0000</bug_when>
    <thetext>Since it&apos;s triggered as the default action of the trigger (which is kind of bogus phrasing), the original event is assumed to be dispatched as well. But currently the way this text is written is indeed rather messy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115000</commentid>
    <comment_count>2</comment_count>
    <who name="Manish Goregaokar">manishearth</who>
    <bug_when>2014-11-17 13:07:29 +0000</bug_when>
    <thetext>If so, is there any order to it?

A synthetic click consists of the following:

 - Pre activation dispatch
 - Click dispatch
 - Post activation dispatch


The key event it originated from also has keyup/keydown/keypress. How do these interleave?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118763</commentid>
    <comment_count>3</comment_count>
    <who name="Arthur Barstow">art.barstow</who>
    <bug_when>2015-03-21 15:12:07 +0000</bug_when>
    <thetext>Bulk move of all D3E bugs to the UI Events component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123569</commentid>
    <comment_count>4</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2015-10-07 04:25:41 +0000</bug_when>
    <thetext>Now tracking as: https://github.com/w3c/uievents/issues/34</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>