MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ResetKeyTypeState

Function ResetKeyTypeState

source/hook.cpp:4469–4482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4467
4468
4469void ResetKeyTypeState(key_type &key)
4470{
4471 key.is_down = false;
4472 key.it_put_alt_down = false;
4473 key.it_put_shift_down = false;
4474 key.down_performed_action = false;
4475 key.was_just_used = 0;
4476 key.hotkey_to_fire_upon_release = HOTKEY_ID_INVALID;
4477 // ABOVE line was added in v1.0.48.03 to fix various ways in which the hook didn't receive the key-down
4478 // hotkey that goes with this key-up, resulting in hotkey_to_fire_upon_release being left at its initial
4479 // value of zero (which is a valid hotkey ID). Examples include:
4480 // The hotkey command being used to create a key-up hotkey while that key is being held down.
4481 // The script being reloaded or (re)started while the key is being held down.
4482}
4483
4484
4485

Callers 1

ResetHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected