Browse Source

Fixed RTL punctuations shortcuts

CPKreuz 2 years ago
parent
commit
b0022a23dc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/PixiEditor/Models/DataHolders/KeyCombination.cs

+ 1 - 0
src/PixiEditor/Models/DataHolders/KeyCombination.cs

@@ -39,6 +39,7 @@ public record struct KeyCombination(Key Key, ModifierKeys Modifiers)
             builder.Append(InputKeyHelpers.GetKeyboardKey(Key, forceInvariant));
             builder.Append(InputKeyHelpers.GetKeyboardKey(Key, forceInvariant));
         }
         }
 
 
+        builder.Append('‎'); // left-to-right marker ensures WPF does not reverse the string when using punctuations as key
         return builder.ToString();
         return builder.ToString();
     }
     }