W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2011

[DOM3 Events] "Super" and "Hyper" keys on Linux

From: Masayuki Nakano <masayuki@d-toybox.com>
Date: Wed, 02 Feb 2011 13:48:25 +0900
Message-ID: <4D48E219.6030604@d-toybox.com>
To: "www-dom@w3.org" <www-dom@w3.org>
Hello.

On Linux, there are two modifier key types such as "Super" and "Hyper". 
"Super" is mapped to Windows key on Ubuntu and Fedora. I'm not sure 
about "Hyper".

They are different from "Meta" which is defined as another key on Linux.

Therefore, I think that DOM3 spec also defines "Super" and "Hyper" key 
in the list.

However, "Super" may not be needed because WebKit maps same keycode as 
"Win" key on Windows to it. But I'm not sure whether this is correct. If 
some Linux distributions or other UNIX vendors map the Win key to "Meta" 
or "Hyper", the "Win" key detection on web application will miss.

I'm not sure which is correct. But I think that the spec should make 
mention of these issues at least.

Furthermore, there are no properties for their keys in KeyboardEvent 
like altKey and metaKey. I guess that these properties are defined for 
backward compatibility, however, it seems that they're more useful than 
getModifierState() due to they are simpler than it.

-- 
Masayuki Nakano <masayuki@d-toybox.com>
Manager, Internationalization, Mozilla Japan.
Received on Wednesday, 2 February 2011 04:49:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT