Commit 257b7af247b9dbda1c69a1dbb88f4438b8631ee7

Ryan C. Gordon 2015-12-28T13:07:44

Sync up the caps/numlock state properly without sending key events. Partially fixes Bugzilla #2736 and #3125.