Files
Bubberstation/code/modules/client/verbs/reset_held_keys.dm
SkyratBot c487c73f39 [MIRROR] Grep for space indentation (#1969)
* Grep for space indentation

* aa

* Update species.dm

* Update species.dm

* Update maps.dm

* Update examine.dm

Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
Co-authored-by: Azarak <azarak10@gmail.com>
2020-12-01 12:26:41 +01:00

18 lines
464 B
Plaintext

/**
* Manually clears any held keys, in case due to lag or other undefined behavior a key gets stuck.
*
* Hardcoded to the ESC key.
*/
/client/verb/reset_held_keys()
set name = "Reset Held Keys"
set hidden = TRUE
for(var/key in keys_held)
keyUp(key)
//In case one got stuck and the previous loop didn't clean it, somehow.
for(var/key in key_combos_held)
keyUp(key_combos_held[key])
winset(src, "input", "text=[null]") //SKYRAT EDIT ADDITION - QOL