<?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>23943</bug_id>
          
          <creation_ts>2013-11-30 03:06:10 +0000</creation_ts>
          <short_desc>It&apos;s too difficult to search the code which access KeyboardEvent.key</short_desc>
          <delta_ts>2014-02-19 01:41:54 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Masayuki Nakano">masayuki</reporter>
          <assigned_to name="Gary Kacmarcik">garykac</assigned_to>
          <cc>garykac</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>96942</commentid>
    <comment_count>0</comment_count>
    <who name="Masayuki Nakano">masayuki</who>
    <bug_when>2013-11-30 03:06:10 +0000</bug_when>
    <thetext>I&apos;m working on replacing key names in Firefox with newer WD&apos;s key names.

While I&apos;m working on this, I realized that it&apos;s difficult to search the code which uses KeyboardEvent.key. The reasons are:

* .key is too generic name.
* Defined key names don&apos;t have any mark such as common prefix.

I think that renaming .key may breaks a few web applications which already use .key attribute only on supported browsers.

On the other hand, if we can add common prefix e.g., &quot;KeyName&quot; to the predefined key names, everybody can search such code with using regexp (KeyName[A-Z][a-zA-Z0-9]+).

Additionally, event.key.match() allows to check if the key event is caused by printable key in almost all cases. (If there is no key which inputs &quot;KeyNameFoo&quot;!)

This change may too late. However, at least, it&apos;s worthwhile to discuss this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100826</commentid>
    <comment_count>1</comment_count>
    <who name="Gary Kacmarcik">garykac</who>
    <bug_when>2014-02-18 23:50:02 +0000</bug_when>
    <thetext>From our teleconf:
http://www.w3.org/2008/webapps/wiki/21-Jan-2014

Re: 23943, I think it&apos;s too late to change the name from &apos;key&apos; to anything else since there are existing implementations. Although I agree tha the name is unfortunate. Same with &apos;code&apos;. Sadly the better names like &apos;keyCode&apos; were already taken.

As for the &apos;key&apos; values, we did clean them up a bit and added prefixes where they made sense.

You can&apos;t search for all the possible &apos;key&apos; values since they can be any Unicode</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>