while in a game, press the “T” hotkey to trigger onHold “up” and “down” event
hold “T” to trigger only “down” onHold event
press “Y” to trigger onPressed event
let go to “T”
onHold “up” event is expected but doesn’t happen
Output looks like this. There’s not “up” onHold event if the onPressed event is fired.
Do you currently have a workaround?
I can use a timeout to group hotkey presses, but that doesn’t work very well because it requires the user to press the hotkeys within a time window and not press any hotkeys afterwards until the timeout ends.
The above sample project in my original post can be used for testing. I just added another hotkey into the manifest.
Issue:
If two hotkeys are pressed close to the same time, then the first hotkey will fire another onPressed event.
In my testing, pressing hotkeys about 200ms or more apart looked like there is no issue, but under 200ms we have a chance the previous hotkey’s event will be repeated.
My testing showed about 180ms apart is still ok, but about 160ms and below has the event repeating issue.
In the below screenshot, I press the first hotkey “y” then followed by the second hotkey “u”. A third event is fired for the first hotkey I pressed, “y”.
The same thing happens when pressing more than two hotkeys. I will get repeats of the previous hotkeys pressed.