xpra icon
Bug tracker and wiki

Opened 7 days ago

Closed 4 days ago

#2326 closed defect (fixed)

capslock not detected

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: critical Milestone: 3.0
Component: html5 Version: 2.5.x
Keywords: Cc:

Description

Broke at some point and I didn't notice.

Change History (2)

comment:1 Changed 7 days ago by Antoine Martin

Status: newassigned

That's because the keypress event no longer fires. (either something changed in jquery or chrome)
Trivial fix in r22909.

Since event.getModifierState seems to work well, r22910 also switches to that for numlock and removes the keypress event handler hack completely.

Needs testing with all browsers... because the result matrix for this API call is "interesting", see MDN: getModifierState
This fiddle can be used for quick testing: http://jsfiddle.net/Mottie/a6nhqvv0/

Last edited 7 days ago by Antoine Martin (previous) (diff)

comment:2 Changed 4 days ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

Tested OK on all supported browsers, including old versions of Safari, Firefox and chrome on Linux and Windows.

Note: See TracTickets for help on using tickets.