Clean up the Enter logic of Passwordbox
MODIFY
WalletWasabi.Gui/Controls/NoparaPasswordBox.cs
WalletWasabi.Gui/Controls/NoparaPasswordBox.cs
@@ -38,7 +38,7 @@ namespace WalletWasabi.Gui.Controls
private static Key[] SuppressedKeys { get; } =
{
Key.LeftCtrl, Key.RightCtrl, Key.LeftAlt, Key.RightAlt, Key.LeftShift, Key.RightShift, Key.Escape, Key.CapsLock, Key.NumLock, Key.LWin, Key.RWin,
- Key.Left, Key.Right, Key.Up, Key.Down
+ Key.Left, Key.Right, Key.Up, Key.Down, Key.Enter
};
private bool _supressChanges;

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -180,27 +180,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
SetSendText();
});
- this.WhenAnyValue(x => x.Password)
- .ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
- {
- try
- {
- if (x.NotNullAndNotEmpty())
- {
- char lastChar = x.Last();
- if (lastChar == '\r' || lastChar == '\n') // If the last character is cr or lf then act like it'd be a sign to do the job.
- {
- Password = x.TrimEnd('\r', '\n');
- }
- }
- }
- catch (Exception ex)
- {
- Logging.Logger.LogTrace(ex);
- }
- });
-
this.WhenAnyValue(x => x.Label)
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(UpdateSuggestions);

Clean up the Enter logic of Passwordbox