Merge pull request #12640 from Citadel-Station-13/silicons-patch-6

fixes independent bindings not registering keyups
This commit is contained in:
Ghom
2020-06-29 18:34:07 +02:00
committed by GitHub

View File

@@ -91,6 +91,11 @@
if(!(next_move_dir_add & movement))
next_move_dir_sub |= movement
if(prefs.modless_key_bindings[_key])
var/datum/keybinding/kb = GLOB.keybindings_by_name[prefs.modless_key_bindings[_key]]
if(kb.can_use(src))
kb.up(src)
// We don't do full key for release, because for mod keys you
// can hold different keys and releasing any should be handled by the key binding specifically
for (var/kb_name in prefs.key_bindings[_key])