This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23906 - [proposal] Add (Mouse|Keyboard)Event.accelKey
Summary: [proposal] Add (Mouse|Keyboard)Event.accelKey
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - DOM3 Events (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Gary Kacmarcik
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
: 22073 (view as bug list)
Depends on: 22073
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-25 08:31 UTC by Masayuki Nakano
Modified: 2014-05-12 21:26 UTC (History)
4 users (show)

See Also:


Attachments

Description Masayuki Nakano 2013-11-25 08:31:56 UTC
It might be that this should be discussed as a proposal of UI Events, though. However, I think this is very useful for web applications which implement their own shortcut keys.

Proper modifier key which should be used for shortcut key depends on platforms or user settings on UNIX like OS. Especially, it's impossible web apps to know proper modifier key(s) for shortcut key on UNIX like OS (I guess that most users of Linux expects ctrlKey, but somebody especially who uses Sun keyboard or Mac keyboard might expect metaKey).

accelKey should be true if modifier key which is expected as shortcut modifier key by the user. E.g., it's alias of ctrlKey on Windows, it's alias of metaKey on Mac.

If this is defined by D3E, web apps don't need to check platforms and guess proper modifier key for shortcut themselves.
Comment 1 Masayuki Nakano 2013-11-25 08:34:01 UTC
And also getModifierState("Accel") should work as so.
Comment 2 Gary Kacmarcik 2014-03-04 23:54:19 UTC
*** Bug 22073 has been marked as a duplicate of this bug. ***
Comment 3 Gary Kacmarcik 2014-05-06 21:44:37 UTC
Fixed in https://dvcs.w3.org/hg/dom3events/rev/b722b0972b93
Comment 4 Travis Leithead [MSFT] 2014-05-12 21:26:39 UTC
Resolving the bug.