From 9af79ca8271e9a463e88a4f507a48afa9a48dacc Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Sat, 20 Apr 2024 23:21:09 +0300 Subject: [PATCH] fix cyrillic --- .../cyrillic_fixes/code/cyrillic_fixes.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modular_bandastation/cyrillic_fixes/code/cyrillic_fixes.dm b/modular_bandastation/cyrillic_fixes/code/cyrillic_fixes.dm index f176cf1925193..b8d6d16529934 100644 --- a/modular_bandastation/cyrillic_fixes/code/cyrillic_fixes.dm +++ b/modular_bandastation/cyrillic_fixes/code/cyrillic_fixes.dm @@ -13,7 +13,7 @@ GLOBAL_LIST_INIT(ru_key_to_en_key, list( #define MAX_HOTKEY_SLOTS 3 -/datum/preference_middleware/keybindings/set_keybindings(list/params) +/datum/preference_middleware/keybindings/set_keybindings(list/params, mob/user) var/keybind_name = params["keybind_name"] if (isnull(GLOB.keybindings_by_name[keybind_name])) @@ -42,6 +42,12 @@ GLOBAL_LIST_INIT(ru_key_to_en_key, list( preferences.key_bindings[keybind_name] = hotkeys preferences.key_bindings_by_key = preferences.get_key_bindings_by_key(preferences.key_bindings) + user.client.update_special_keybinds() + return TRUE #undef MAX_HOTKEY_SLOTS + +/datum/tgui_input_keycombo/set_entry(entry) + entry = convert_ru_key_to_en_key(entry) || entry + . = ..()