[Keyboard Manager] Allow whitespace-only TextRemappings (#46510)

Title.

Closes #46453
This commit is contained in:
Zach Teutsch
2026-03-26 13:14:13 -04:00
committed by GitHub
parent c83dd972a0
commit c05ba4e2c8
2 changed files with 2 additions and 2 deletions

View File

@@ -564,7 +564,7 @@ namespace KeyboardManagerEditorUI.Controls
return CurrentActionType switch
{
ActionType.KeyOrShortcut => _actionKeys.Count > 0,
ActionType.Text => !string.IsNullOrWhiteSpace(TextContentBox?.Text),
ActionType.Text => !string.IsNullOrEmpty(TextContentBox?.Text),
ActionType.OpenUrl => !string.IsNullOrWhiteSpace(UrlPathInput?.Text),
ActionType.OpenApp => !string.IsNullOrWhiteSpace(ProgramPathInput?.Text),
_ => false,

View File

@@ -90,7 +90,7 @@ namespace KeyboardManagerEditorUI.Helpers
return ValidationErrorType.EmptyOriginalKeys;
}
if (string.IsNullOrWhiteSpace(textContent))
if (string.IsNullOrEmpty(textContent))
{
return ValidationErrorType.EmptyTargetText;
}