From 4954e73f3b4f546be1257956316f389de158d8f3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:44:23 +0000 Subject: [PATCH 1/2] Initial plan From ae80a331bb792ae4f1078e457c730771e305372c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:46:33 +0000 Subject: [PATCH 2/2] Fix: Ctrl+C only copies full markdown when no text is selected Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com> --- script.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 562d8bc..52327eb 100644 --- a/script.js +++ b/script.js @@ -1678,8 +1678,13 @@ This is a fully client-side application. Your content never leaves your browser exportMd.click(); } if ((e.ctrlKey || e.metaKey) && e.key === "c") { - e.preventDefault(); - copyMarkdownButton.click(); + const activeEl = document.activeElement; + const isTextControl = activeEl && (activeEl.tagName === "TEXTAREA" || activeEl.tagName === "INPUT"); + const hasSelection = window.getSelection && window.getSelection().toString().trim().length > 0; + if (!isTextControl && !hasSelection) { + e.preventDefault(); + copyMarkdownButton.click(); + } } // Story 1.2: Only allow sync toggle shortcut when in split view if ((e.ctrlKey || e.metaKey) && e.shiftKey && e.key === "S") {