Bug 18792

Summary: No keyup event generated when turning caps lock on
Product: WebKit Reporter: Darin Adler <darin>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, dbates, mrowe, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://www.w3.org/2002/09/tests/keys-cancel2.html

Description Darin Adler 2008-04-28 14:38:55 PDT
Testing with the W3 page <http://www.w3.org/2002/09/tests/keys-cancel2.html> I noticed that no keyup event was generated when turning caps lock on. But one was generated when turning it off.
Comment 1 Radar WebKit Bug Importer 2012-12-11 21:33:16 PST
<rdar://problem/12861840>
Comment 2 Mark Rowe (bdash) 2012-12-11 21:34:25 PST
I believe this is an issue in an underlying component of OS X, and I'm not aware of any workaround.
Comment 3 Ryosuke Niwa 2012-12-12 14:17:27 PST
Also see https://bugzilla.mozilla.org/show_bug.cgi?id=712535.

In particular, the reported behavior of WebKit seems to indicate we have more bugs in this area:
<blockquote>
I've tested this in Chrome and Safari, both of which fire a keyup event after toggling the caps-lock key.


Actual results:

On the first press of caps-lock the keydown event fires.
On the second press of caps-lock the keydown event fires again.


Expected results:

On the first press of caps-lock the keydown event should fire.
On the second press of caps-lock the keyup event should fire, Not keydown again.
</blockquote>