Fixes keybind up() not checking for can_use() (#52475)

This commit is contained in:
ShizCalev
2020-07-26 13:44:13 -04:00
committed by GitHub
parent c9e23a6d8e
commit f2a61be00a
+1 -1
View File
@@ -88,7 +88,7 @@
// can hold different keys and releasing any should be handled by the key binding specifically
for (var/kb_name in prefs.key_bindings[_key])
var/datum/keybinding/kb = GLOB.keybindings_by_name[kb_name]
if(kb.up(src))
if(kb.can_use(src) && kb.up(src))
break
holder?.key_up(_key, src)
mob.focus?.key_up(_key, src)