From 8db0dbe928bd45837de741c982ae2007936a7352 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Mar 2026 16:28:46 +0000 Subject: [PATCH 1/2] Initial plan From b7abac1b330a5d13bcb6c17c1cea641705234519 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Mar 2026 16:45:23 +0000 Subject: [PATCH 2/2] Fix Ctrl+C copy shortcut for log/statistics view in ExecuteSqlFrame When the statistics/log view (vmLogCtrl) was active in the SQL editor window, pressing Ctrl+C did nothing because OnMenuCopy only handled vmEditor and vmGrid modes. The frame's Edit menu accelerator captured Ctrl+C and called OnMenuCopy, which skipped the vmLogCtrl case entirely. - Add vmLogCtrl handling in OnMenuCopy to call styled_text_ctrl_stats->Copy() - Add vmLogCtrl handling in OnMenuUpdateCopy to enable Copy when text is selected in the statistics/log view Co-authored-by: mariuz <18359+mariuz@users.noreply.github.com> Agent-Logs-Url: https://github.com/mariuz/flamerobin/sessions/6e42adab-f5d3-44b9-86a6-ac8a1e0ce6a3 --- src/gui/ExecuteSqlFrame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/ExecuteSqlFrame.cpp b/src/gui/ExecuteSqlFrame.cpp index ac17eb42..31400664 100644 --- a/src/gui/ExecuteSqlFrame.cpp +++ b/src/gui/ExecuteSqlFrame.cpp @@ -1514,6 +1514,8 @@ void ExecuteSqlFrame::OnMenuCopy(wxCommandEvent& WXUNUSED(event)) { if (viewModeM == vmEditor) styled_text_ctrl_sql->Copy(); + else if (viewModeM == vmLogCtrl) + styled_text_ctrl_stats->Copy(); else if (viewModeM == vmGrid) grid_data->copyToClipboard(false); } @@ -1531,6 +1533,8 @@ void ExecuteSqlFrame::OnMenuUpdateCopy(wxUpdateUIEvent& event) bool enableCmd = false; if (viewModeM == vmEditor) enableCmd = styled_text_ctrl_sql->hasSelection(); + else if (viewModeM == vmLogCtrl) + enableCmd = styled_text_ctrl_stats->GetSelectionStart() != styled_text_ctrl_stats->GetSelectionEnd(); else if (viewModeM == vmGrid) enableCmd = grid_data->getDataGridTable() && grid_data->GetNumberRows(); event.Enable(enableCmd);