diff --git a/Sources/GhosttyTerminalView.swift b/Sources/GhosttyTerminalView.swift index e461e9d1..7855f1fc 100644 --- a/Sources/GhosttyTerminalView.swift +++ b/Sources/GhosttyTerminalView.swift @@ -3992,7 +3992,7 @@ class GhosttyNSView: NSView, NSUserInterfaceValidations { // AppKit text interpretation and send a single deterministic Ghostty key event. // This avoids intermittent drops after rapid split close/reparent transitions. let flags = event.modifierFlags.intersection(.deviceIndependentFlagsMask) - if flags.contains(.control) && !flags.contains(.command) && !flags.contains(.option) { + if flags.contains(.control) && !flags.contains(.command) && !flags.contains(.option) && !hasMarkedText() { ghostty_surface_set_focus(surface, true) var keyEvent = ghostty_input_key_s() keyEvent.action = event.isARepeat ? GHOSTTY_ACTION_REPEAT : GHOSTTY_ACTION_PRESS