Files
Bubberstation/code/modules/client/verbs/reset_held_keys.dm
TiviPlus 0eaab0bc54 Grep for space indentation (#54850)
#54604 atomizing
Since a lot of the space indents are in lists ill atomize those later
2020-11-30 12:48:40 -05:00

16 lines
397 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])