<?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>26481</bug_id>
          
          <creation_ts>2014-07-31 14:12:47 +0000</creation_ts>
          <short_desc>Do we need to dispatch &quot;click&quot; event if trigger is from a keyboard as well?</short_desc>
          <delta_ts>2014-09-08 22:03:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sanjoy">sanjoy.pal</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109661</commentid>
    <comment_count>0</comment_count>
    <who name="Sanjoy">sanjoy.pal</who>
    <bug_when>2014-07-31 14:12:47 +0000</bug_when>
    <thetext>Here http://www.whatwg.org/specs/web-apps/current-work/#context-menus
The spec says &quot; If the command&apos;s Action is defined as firing a click event,
either directly or via the run synthetic click activation steps algorithm, then
the relatedTarget attribute of that click event must be initialised to the
subject passed to this construct and show menu algorithm.&quot; 

There is nothing mentioned specific to keyboard event as context menu can be triggered from keyboard as well.

Can someone please clarify if we need to dispatch &quot;click&quot; event if trigger is from a keyboard as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109670</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-07-31 15:29:33 +0000</bug_when>
    <thetext>The &apos;click&apos; events discussed in that paragraph aren&apos;t triggered by any user input. They&apos;re triggered by the prose that describes the &quot;Action&quot; of the relevant command. (The Action itself is triggered by the user selecting an item in the menu, but nothing in the spec says what kind of input that should be. It could be mouse, keyboard, touch, voice, telepathy, who knows.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>