diff options
| author | peelz <peelz.dev@gmail.com> | 2025-02-18 09:31:34 -0500 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-22 00:03:33 -0700 |
| commit | f2663c738c53cba1745457547afa42f18831c4a9 (patch) | |
| tree | 3157db5eae2f9d9d5ad3b5d507602c0985522d90 /src | |
| parent | c3609efb7aaa4f118eacdfed7003285f124f6b8a (diff) | |
| download | niri-f2663c738c53cba1745457547afa42f18831c4a9.tar.gz niri-f2663c738c53cba1745457547afa42f18831c4a9.tar.bz2 niri-f2663c738c53cba1745457547afa42f18831c4a9.zip | |
hotkey_overlay: rename ISO_Level{3,5}_Shift to Mod{5,3}
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/hotkey_overlay.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/hotkey_overlay.rs b/src/ui/hotkey_overlay.rs index 518488e2..9970d2f7 100644 --- a/src/ui/hotkey_overlay.rs +++ b/src/ui/hotkey_overlay.rs @@ -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 { |
