http://bugs.winehq.org/show_bug.cgi?id=35907
--- Comment #2 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Ken Thomases from comment #1)
The thread-specific state is only updated when that thread gets a WM_KEYDOWN for VK_CAPITAL.
If that would be true then turning Caps Lock on before running notepad would lead to wrong results as well, but that's not the case.