Move paste code check in its right place
MODIFY
WalletWasabi.Gui/Controls/NoparaPasswordBox.cs
WalletWasabi.Gui/Controls/NoparaPasswordBox.cs
@@ -210,9 +210,10 @@ namespace WalletWasabi.Gui.Controls
return;
}
- bool paste = false;
if (e.Key == Key.V)
{
+ bool paste = false;
+
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
if (e.Modifiers == InputModifiers.Control) // Prevent paste.
@@ -231,7 +232,6 @@ namespace WalletWasabi.Gui.Controls
paste = true;
}
}
- }
if (paste)
{
@@ -240,8 +240,13 @@ namespace WalletWasabi.Gui.Controls
{
e.Handled = OnTextInput(text, true);
}
+
+ PaintText();
+ return;
}
- else if (Sb.Length > 0)
+ }
+
+ if (Sb.Length > 0)
{
if (e.Key == Key.Back) // Backspace button -> delete from the end.
{

Move paste code check in its right place