http://bugs.winehq.org/show_bug.cgi?id=57958
--- Comment #1 from DanielGGGG daniel.gaba@protonmail.com --- Created attachment 79444 --> http://bugs.winehq.org/attachment.cgi?id=79444 Keyboard debug
I am not sure if this is usefull. Full debug output in attachment
I run notepad via wine 10.16 WINEDEBUG=+key,+keyboard ./wine notepad &>> /tmp/output2.log
1. Caps lock state is off 2. Press and hold W button 3. Press and hold Caps Lock button 4. Release Caps lock button 5. Release W button
On pressing CAPS LOCK generated input 00f8:trace:key:X11DRV_send_keyboard_input hwnd 0x1006e vkey=0014 scan=003a flags=0000
And while releasing CAPS LOCK it generated 00f8:trace:key:X11DRV_send_keyboard_input hwnd 0x1006e vkey=0014 scan=003a flags=0002
In this case there is no issue.
1. Caps lock state is on 2. Press and hold C button 3. Press and hold Caps Lock button 4. Release Caps lock button 5. Release C button
In this case on pressing caps lock it generated 1 input 00f8:trace:key:X11DRV_send_keyboard_input hwnd 0x1006e vkey=0014 scan=003a flags=0000
and after few lines it generated 2 more caps lock inputs 00f8:trace:key:X11DRV_send_keyboard_input hwnd 0x1006e vkey=0014 scan=003a flags=0002 00f8:trace:key:X11DRV_send_keyboard_input hwnd 0x1006e vkey=0014 scan=003a flags=0000
and on Caps lock key release it generate Caps lock input X11DRV_send_keyboard_input hwnd 0x1006e vkey=0014 scan=003a flags=0002
and after few lines it generate 2 more caps lock input 00f8:trace:key:X11DRV_send_keyboard_input hwnd 0x1006e vkey=0014 scan=003a flags=0000 00f8:trace:key:X11DRV_send_keyboard_input hwnd 0x1006e vkey=0014 scan=003a flags=0002
This cause issue in games that have use CAPS LOCK button. I also saw simillar bug report where I also posted my findings. https://bugs.winehq.org/show_bug.cgi?id=58371