Update bindings_client.dm

This commit is contained in:
silicons
2020-06-29 04:42:58 -07:00
committed by GitHub
parent 53a9dd560b
commit 9697e1b946
@@ -1,3 +1,8 @@
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.down(src)
keycount++
// Clients aren't datums so we have to define these procs indpendently.
// These verbs are called for all key press and release events
/client/verb/keyDown(_key as text)
@@ -91,6 +96,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])