Modifier key gets stuck on wireless keyboard
Posted: 11 May 2023, 07:21
My keyboard has 2 wireless modes, a 2.4ghz dongle and bluetooth. On bluetooth the problem reproduces quite easily. On 2.4ghz it occurs from time to time, but I wasn't able to reproduce it intentionally with a few attempts
This script allows me to reproduce it:
1. Hold CapsLock
2. hold a
3. Simultaneously press d, while releasing CapsLock and a (might take a few tries)
4. Release d
5. try pressing a or d
Result - Left and Right keys are sent
In the key history i can see that CapsLock up event was not registered by autohotkey:
Is there a way to work this around?
This script allows me to reproduce it:
Code: Select all
SetCapsLockState "AlwaysOff"
CapsLock & a:: Left
CapsLock & d:: Right
2. hold a
3. Simultaneously press d, while releasing CapsLock and a (might take a few tries)
4. Release d
5. try pressing a or d
Result - Left and Right keys are sent
In the key history i can see that CapsLock up event was not registered by autohotkey:
Code: Select all
14 03A s d 0.19 CapsLock
41 01E h d 0.11 a
25 14B i d 0.00 Left
41 01E h d 0.50 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.05 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.05 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.05 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.03 a
25 14B i d 0.00 Left
41 01E h d 0.02 a
25 14B i d 0.01 Left
41 01E h d 0.02 a
25 14B i d 0.00 Left
41 01E h d 0.05 a
25 14B i d 0.00 Left
44 020 h d 0.03 d
27 14D i d 0.00 Right
41 01E h u 0.02 a
25 14B i u 0.00 Left
44 020 h u 0.22 d
27 14D i u 0.00 Right
41 01E h d 1.36 a
25 14B i d 0.00 Left
41 01E h u 0.16 a
25 14B i u 0.00 Left
44 020 h d 0.20 d
27 14D i d 0.00 Right
44 020 h u 0.12 d
27 14D i u 0.00 Right