UltimateHackingKeyboard / firmware

Ultimate Hacking Keyboard firmware
Other
420 stars 66 forks source link

oneshot becomes sticky #807

Open 0x4d0x4b opened 2 months ago

0x4d0x4b commented 2 months ago

Firmware 11.1.1 | Agent 4.2.0

oneshot becomes sticky while the same physical key that activated the macro on a mod layer is pressed repeatedly on the base layer

Below some reduced test case scenario can be found to explain the issue Given that oneshot timeout is set to infinite set oneShotTimeout 0 and following macro is defined and bound to Mod+F oneShot holdKey iLS- when macro is activated with Mod+F and then F key pressed repeatedly on a base layer oneshot state is preserved - probably because it detects that activation key is still pressed. Pressing another physical key clears the state however first press is still shifted.

Actual result FFFFFFFFFF Expected result Ffffffffff

Actual result FTttt Expected result Ftttt