fix(ui): async commands re-query on CommandManager requests; Ctrl+Enter passes through edit fields

AsyncRelayCommand raised CanExecuteChanged only around its own execution, so
buttons bound to it never re-evaluated after the view model's state changed
(CommandManager.InvalidateRequerySuggested reached RelayCommand only).
EditBehavior swallowed Ctrl+Enter, so a screen shortcut never fired while a
field had focus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 10:13:15 +00:00
1 parent 2f33c33b3f
commit ebcdc4d885
2 files changed
+21 -5

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ namespace Titano.App.Shell;
/// <summary>
/// Attaches an <see cref="EditableField"/> to a text box (DESIGN §4 inputs): Enter commits, Esc reverts, leaving
/// the field commits a valid value.
/// the field commits a valid value. Ctrl+Enter commits and still reaches the screen's shortcut (Import · Ctrl+Enter).
/// </summary>
public static class EditBehavior
{
@@ -37,7 +37,7 @@ public static class EditBehavior
{
field.Commit();
box.SelectAll();
e.Handled = true;
e.Handled = Keyboard.Modifiers != ModifierKeys.Control;
}
else if (e.Key == Key.Escape)
{