Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #32938 > unrolled thread

Right versus ArrowRight

Started byAndrew Poulos <ap_prog@hotmail.com>
First post2017-04-05 11:30 +1000
Last post2017-04-05 15:10 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  Right versus ArrowRight Andrew Poulos <ap_prog@hotmail.com> - 2017-04-05 11:30 +1000
    Re: Right versus ArrowRight Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-05 15:10 +0200

#32938 — Right versus ArrowRight

FromAndrew Poulos <ap_prog@hotmail.com>
Date2017-04-05 11:30 +1000
SubjectRight versus ArrowRight
Message-ID<SMSdnTDHhcoz1XnFnZ2dnUU7-eHNnZ2d@westnet.com.au>
MDN says not to use keyCode
<https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode>
but when I test using key I find that Chrome and Firefox return 
"ArrowRight" for the right arrow key whereas Edge and IE return "Right".

Surely they could've agreed on something so basic as what to call the 
keys on a keyboard :-(

Andrew Poulos

[toc] | [next] | [standalone]


#32940

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2017-04-05 15:10 +0200
Message-ID<1778327.oMNUckLgyt@PointedEars.de>
In reply to#32938
Andrew Poulos wrote:

> MDN says not to use keyCode
> <https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode>
> but when I test using key I find that Chrome and Firefox return
> "ArrowRight" for the right arrow key whereas Edge and IE return "Right".

The “key” attribute is specified in a 2017-02 W3C Working Draft only, in 
which “ArrowRight” is specified but which still refers to an earlier 2016-08 
Working Draft in which “ArrowRight” is also specified.  Both Working Drafts 
have an editor from Google and Microsoft each, so they should come to terms 
at some point.
 
-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web