Workaround for Qt bug with Caps Lock