Broke at some point and I didn't notice.
That's because the
keypress event no longer fires. (either something changed in jquery or chrome)
Trivial fix in r22909.
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/
Tested OK on all supported browsers, including old versions of Safari, Firefox and chrome on Linux and Windows.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2326