Hi, I have a key called K setup with tap hold functionality to be Control on hold and Space on tap.
Using tap hold configuration (see HOLD_ON_OTHER_KEY_PRESS) I managed to make it that the sequence: Press K, Press C, Release K, Release C will generate a Control C after C press.
I am interested to change the behavior before either another key (here C) is pressed or a timer finishes to classify it as a hold.
On my motivation, in my text editor holding Control and using the Left-mouse-button has special meaning, but using the current setup i have to wait for the timer to register Control.
This could be solved either by connecting the mouse to the keyboard to give Left-mouse-button the same behavior as C (I do not think this is a great idea)
or by sending the computer the held-event while the keyboard is unsure which of hold or tap is appropriate and releasing before the tap event is sent.
I am not familiar with the code generating actions to find the place where such behavior could be inserted. The issue is that I am unsure if there is yet an action created on K press, which's meaning can be changed.
If there was, then (ignoring modifiers already being held beforehand) sending Control press on K press, and sending Control release on quick Release K before sending Space tap should work nicely.
If similar behavior was discussed elsewhere, please point me to it since i could not find it.
Documentation for QMK Firmware