swap conditions
MODIFY
WalletWasabi.Fluent/Behaviors/TagsBoxAutoCompleteBoxBehavior.cs
WalletWasabi.Fluent/Behaviors/TagsBoxAutoCompleteBoxBehavior.cs
@@ -150,7 +150,9 @@ namespace WalletWasabi.Fluent.Behaviors
var currentTextTrimmed = currentText.Trim();
if (!IsInputEnabled ||
- currentText.Length < 1 || string.IsNullOrEmpty(currentTextTrimmed) || !currentText.EndsWith(' ') ||
+ currentText.Length < 1 ||
+ string.IsNullOrEmpty(currentTextTrimmed) ||
+ !currentText.EndsWith(' ') ||
(RestrictInputToSuggestions && !Suggestions.Any(x => x.Equals(currentTextTrimmed,
StringComparison.InvariantCultureIgnoreCase))))
return;
@@ -179,7 +181,7 @@ namespace WalletWasabi.Fluent.Behaviors
case Key.Back when _bs1 && _bs2:
BackspaceAndEmptyTextAction?.Invoke();
break;
- case Key.Enter when !string.IsNullOrEmpty(strTrimmed) && IsInputEnabled:
+ case Key.Enter when IsInputEnabled && !string.IsNullOrEmpty(strTrimmed) :
if (RestrictInputToSuggestions && !Suggestions.Any(x =>
x.Equals(strTrimmed, StringComparison.InvariantCultureIgnoreCase)))
break;

swap conditions