From 9c5872eb27ecaa2aadd558969188cf302664c19d Mon Sep 17 00:00:00 2001 From: mika kuns Date: Fri, 5 Jun 2026 08:34:30 +0200 Subject: [PATCH] feat(ui): send Retry on Enter in the review prompt Co-Authored-By: Claude Opus 4.7 --- .../Views/Islands/Detail/WorkConsole.axaml.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml.cs b/src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml.cs index 7efcc15..1ea4e40 100644 --- a/src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml.cs +++ b/src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Specialized; using Avalonia.Controls; +using Avalonia.Input; using ClaudeDo.Ui.ViewModels.Islands; namespace ClaudeDo.Ui.Views.Islands.Detail; @@ -37,4 +38,18 @@ public partial class WorkConsole : UserControl }; LogScroll.LayoutUpdated += handler; } + + private void OnReviewInputKeyDown(object? sender, KeyEventArgs e) + { + if (e.Key != Key.Enter || e.KeyModifiers.HasFlag(KeyModifiers.Shift)) + return; + + if (DataContext is DetailsIslandViewModel vm && + vm.RejectReviewCommand.CanExecute(null)) + { + vm.RejectReviewCommand.Execute(null); + } + + e.Handled = true; + } }