make onkeydown handling safe.
MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
@@ -250,14 +250,16 @@ namespace WalletWasabi.Fluent.Controls
{
var text = await AvaloniaLocator.Current.GetService<IClipboard>().GetTextAsync();
- if (string.IsNullOrEmpty(text) || !ValidateEntryText(text))
+ if (!string.IsNullOrEmpty(text) && ValidateEntryText(text))
{
- return;
+ base.OnTextInput(new TextInputEventArgs { Text = text});
}
}
-
+ else
+ {
base.OnKeyDown(e);
}
+ }
public async void ModifiedPaste()
{

make onkeydown handling safe.