W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2010

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

From: Web Applications Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Wed, 06 Oct 2010 06:22:40 +0000
To: public-webapps@w3.org
Message-Id: <E1P3NOi-0004kH-CB@lowblow.w3.org>

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


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

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:28 UTC