[Webkit-unassigned] [Bug 69029] Please implement key, char, location and locale properties of KeyboardEvent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 29 05:34:00 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=69029





--- Comment #1 from Vineet Chaudhary (vineetc) <rgf748 at motorola.com>  2011-09-29 05:34:00 PST ---
After going through code I have few below observations:

The new spec say for "char" http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent-char
In Current KeyboardEvent.idl we have charcode which actually does the same but instead of returning DOMString returns long value.
[ref] readonly attribute long             charCode;

The new spec say for "key" http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent-key
In Current KeyboardEvent.idl we have keyCode which actually does the same but instead of returning DOMString returns long value.
[ref] readonly attribute long             keyCode;

similarly for "location" there is "keyLocation" with same return type as spec says(unsigned long).

So as char, key and location already present there so we need to change their return type & name to match with spec..?

The reason we are getting logs as undefined is we are using event.char & event.location instead if we use  event.charCode & event.keyLocation it gives proper logs.

Please let me know if I need to investigate more.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list