ctrl/cmd+x and ctrl/cmd+c shouldn't do anything - fix
MODIFY
WalletWasabi.Gui/Controls/NoparaPasswordBox.cs
WalletWasabi.Gui/Controls/NoparaPasswordBox.cs
@@ -40,7 +40,8 @@ namespace WalletWasabi.Gui.Controls
// "blackberry",
//};
- private static readonly Key[] SuppressedKeys = { Key.LeftCtrl, Key.RightCtrl, Key.LeftAlt, Key.RightAlt, Key.LeftShift, Key.RightShift, Key.Escape, Key.CapsLock, Key.NumLock };
+ private static readonly Key[] SuppressedKeys =
+ { Key.LeftCtrl, Key.RightCtrl, Key.LeftAlt, Key.RightAlt, Key.LeftShift, Key.RightShift, Key.Escape, Key.CapsLock, Key.NumLock, Key.LWin, Key.RWin };
private bool _supressChanges;
private string _displayText = "";
@@ -155,6 +156,11 @@ namespace WalletWasabi.Gui.Controls
{
return;
}
+ //prevent copy
+ if ((e.Key == Key.C || e.Key == Key.Insert) && (e.Modifiers == InputModifiers.Control || e.Modifiers == InputModifiers.Windows))
+ {
+ return;
+ }
if (e.Key == Key.V && e.Modifiers == InputModifiers.Control) //paste
{

ctrl/cmd+x and ctrl/cmd+c shouldn't do anything - fix