hotkey_overlay: rename ISO_Level{3,5}_Shift to Mod{5,3}

This commit is contained in:
peelz
2025-02-18 09:31:34 -05:00
committed by Ivan Molodetskikh
parent c3609efb7a
commit f2663c738c
+4 -4
View File
@@ -465,10 +465,10 @@ fn key_name(mod_key: ModKey, key: &Key) -> String {
name.push_str("Ctrl + ");
}
ModKey::IsoLevel3Shift => {
name.push_str("ISO_Level3_Shift + ");
name.push_str("Mod5 + ");
}
ModKey::IsoLevel5Shift => {
name.push_str("ISO_Level5_Shift + ");
name.push_str("Mod3 + ");
}
}
}
@@ -488,12 +488,12 @@ fn key_name(mod_key: ModKey, key: &Key) -> String {
if key.modifiers.contains(Modifiers::ISO_LEVEL3_SHIFT)
&& !(has_comp_mod && mod_key == ModKey::IsoLevel3Shift)
{
name.push_str("ISO_Level3_Shift + ");
name.push_str("Mod5 + ");
}
if key.modifiers.contains(Modifiers::ISO_LEVEL5_SHIFT)
&& !(has_comp_mod && mod_key == ModKey::IsoLevel5Shift)
{
name.push_str("ISO_Level5_Shift + ");
name.push_str("Mod3 + ");
}
let pretty = match key.trigger {