- From: Hallvord Reiar Michaelsen Steen <hallvord@opera.com>
- Date: Thu, 31 Jan 2013 11:46:16 +0100
- To: Gary Kacmarcik (Кошмарчик) <garykac@chromium.org>, Florian Bösch <pyalot@gmail.com>
- Cc: "Webapps WG" <public-webapps@w3.org>
> What/where would be a good place to put the API for say queryKeyCap(code) ? Given that the implementation will have a KeyboardEvent property specified on the global object (i.e. window) I'd propose window.KeyboardEvent.queryKeyCap(code) which returns a string with the symbol shown on the key. I.e. On QWERTY: KeyboardEvent.queryKeyCap('Digit2') === '2' // true On AZERTY: KeyboardEvent.queryKeyCap('Digit2') === 'é' // true etc. -- Hallvord R. M. Steen Core tester, Opera Software
Received on Thursday, 31 January 2013 10:46:46 UTC