<?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>22834</bug_id>
          
          <creation_ts>2013-07-30 00:15:04 +0000</creation_ts>
          <short_desc>DOM_KEY_LOCATION_MOBILE and _JOYSTICK are no longer needed</short_desc>
          <delta_ts>2013-09-05 16:37:05 +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 - DOM3 Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Gary Kacmarcik">garykac</reporter>
          <assigned_to name="Gary Kacmarcik">garykac</assigned_to>
          <cc>bugs</cc>
    
    <cc>masayuki</cc>
    
    <cc>mike</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>91397</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2013-07-30 00:15:04 +0000</bug_when>
    <thetext>&quot;_MOBILE&quot; is not a well-defined term so it is unclear when this should be set to true. E.g., is a 10&quot; tablet &quot;mobile&quot;? Where is the cutoff between mobile and non-mobile?

&quot;_JOYSTICK&quot; is also probably not needed in this spec since the GamePad API (http://www.w3.org/TR/gamepad/) is meant for these devices.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91439</commentid>
    <comment_count>1</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2013-07-31 00:04:56 +0000</bug_when>
    <thetext>I understand the &quot;MOBILE&quot; can be used for mobile phone _OS_ which doesn&apos;t provide key location information because layout of VKB isn&apos;t similar to physical keyboard and/or apps cannot distinguish whether a key event is caused by physical keyboard or VKB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91457</commentid>
    <comment_count>2</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2013-07-31 13:41:25 +0000</bug_when>
    <thetext>So *every* key press on such a device would have location set to MOBILE?

If so, the meaning of the setting isn&apos;t really &quot;mobile&quot;, but rather &quot;unknown&quot; or &quot;unspecified&quot;. Non-mobile devices could, in theory, make use of this value as well.

But looking at Android&apos;s keycodes:
   http://developer.android.com/reference/android/view/KeyEvent.html
they have separate values for Shift left/right, Control left/right and Meta left/right.  The location field should be set appropriately for these key events, which precludes the use of MOBILE.

I don&apos;t believe that MOBILE is a useful location to have in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91495</commentid>
    <comment_count>3</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2013-08-01 06:07:27 +0000</bug_when>
    <thetext>Gecko implemented so.

But I agree, we can guess the location from keycode on Android.

However, if there are some platforms whose application cannot distinguish left or right of modifier key, &quot;unknown&quot; sounds good to me.

Additionally, Android and Linux has a lot of keycode which are not caused by standard keyboard. I believe that &quot;unknown&quot; should be used for them too.

How about to add DOM_KEY_LOCATION_UNKNOWN as 0xFFFFFFFF and remove MOBILE and JOYSTICK?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91500</commentid>
    <comment_count>4</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2013-08-01 11:33:53 +0000</bug_when>
    <thetext>Sounds ok to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92685</commentid>
    <comment_count>5</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2013-08-28 14:00:54 +0000</bug_when>
    <thetext>I don&apos;t think having a separate _UNKNOWN value provides any value over simply using _STANDARD.

And adding a new (&quot;mobile&quot;-only) value means that sites that check for _STANDARD (vs. _NUMPAD) are more likely to break on mobile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93058</commentid>
    <comment_count>6</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2013-09-05 16:37:05 +0000</bug_when>
    <thetext>Fixed in latest ED</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>