fix(terminal): restore terminal text copy behavior (#452)

* fix(terminal): restore terminal text copy behavior

* fix(desktop): route Cmd+C through terminal-aware copy handler on macOS

- Use a custom macOS Copy menu action to dispatch app copy events first, so terminal selections copy without native “no target” beep, while preserving DOM copy fallback for non-terminal contexts.

---------

Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
shekohex
2026-02-20 13:23:01 +02:00
committed by GitHub
co-authored by Bohdan Triapitsyn
parent 7bcf848035
commit 881e8bdf4f
4 changed files with 73 additions and 39 deletions
-6
View File
@@ -888,11 +888,8 @@ html:not(.dark) .chat-scroll {
/* Keep Ghostty's internal focus textarea fully non-painting on desktop. */
.terminal-viewport-container textarea:not([data-terminal-hidden-input="true"]) {
opacity: 0 !important;
width: 0 !important;
height: 0 !important;
font-size: 0 !important;
line-height: 0 !important;
clip-path: inset(100%) !important;
color: transparent !important;
-webkit-text-fill-color: transparent !important;
background: transparent !important;
@@ -908,9 +905,6 @@ input[aria-label="Terminal input"] {
color: transparent !important;
-webkit-text-fill-color: transparent !important;
opacity: 0 !important;
width: 0 !important;
height: 0 !important;
clip-path: inset(100%) !important;
outline: none !important;
}