ISSUE-141 (IME examples): IME examples [DOM3 Events]

ISSUE-141 (IME examples): IME examples [DOM3 Events]

http://www.w3.org/2008/webapps/track/issues/141

Raised by: Doug Schepers
On product: DOM3 Events

Hallvord R. M. Steen <http://lists.w3.org/Archives/Public/www-dom/2010JulSep/0180.html>:
[[
In the text about Input Method Editors [1], the examples do

> keydown: 's' (U+0073, Latin Small Letter S key)
> compositionstart: ''
> keyup: 's' (U+0073, Latin Small Letter S key)
> keydown: 'i' (U+0069, Latin Small Letter I key)
> keyup: 'i' (U+0069, Latin Small Letter I key)
> keydown: 'Convert'

Now, I'm not a developer - merely a "black box" QA tester - but is it  
possible to implement this in a cross-platform way? AFAIK, on Windows,  
Windows mobile and perhaps other platforms all the implementation will get  
in a keydown event is a VK_PROCESS virtual key code. How is the  
implementation then supposed to map that to an 's', an 'i' and so on?

What sensible implementations currently do is to fire keydown with keyCode  
set to 220 (VK_PROCESS) and keyup with the actual key's virtual key code -  
if the platform makes it available in keyup events, otherwise 229.

(Sorry about the number of separate E-mails today. I've tried to read the  
spec carefully earlier, but it's funny how you overlook things and they  
suddenly jump at you..)

[1] http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#keys-IME
]]

Received on Wednesday, 6 October 2010 06:22:42 UTC