diff --git a/code/_globalvars/lists/client.dm b/code/_globalvars/lists/client.dm index 5181d870c4..3c7429ff09 100644 --- a/code/_globalvars/lists/client.dm +++ b/code/_globalvars/lists/client.dm @@ -1,5 +1,7 @@ GLOBAL_LIST_EMPTY(classic_keybinding_list_by_key) GLOBAL_LIST_EMPTY(hotkey_keybinding_list_by_key) +GLOBAL_LIST_EMPTY(classic_keybinding_modless_defaults) +GLOBAL_LIST_EMPTY(hotkey_keybinding_modless_defaults) GLOBAL_LIST_EMPTY(keybindings_by_name) // This is a mapping from JS keys to Byond - ref: https://keycode.info/ diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 0a7d838aa2..800d29d77a 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -1104,9 +1104,12 @@ GLOBAL_LIST_EMPTY(preferences_datums) holding down shift for sprint. Each keybind can only have one independent binding, and each key can only have one keybind independently bound to it." // Create an inverted list of keybindings -> key var/list/user_binds = list() + var/list/user_modless_binds = list() for (var/key in key_bindings) for(var/kb_name in key_bindings[key]) user_binds[kb_name] += list(key) + for (var/key in modless_key_bindings) + user_modless_binds[modless_key_bindings[key]] = key var/list/kb_categories = list() // Group keybinds by category @@ -1120,7 +1123,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "