macos: passthrough right mouse down event to TabTitleEditor if needed (#11150)

This commit is contained in:
Lukas
2026-03-30 12:14:30 +02:00
parent 5de30c0dce
commit 51cd63871d
2 changed files with 5 additions and 0 deletions

View File

@@ -184,6 +184,10 @@ class TerminalWindow: NSWindow {
return
}
if tabTitleEditor.handleRightMouseDown(event) {
return
}
super.sendEvent(event)
}

View File

@@ -125,6 +125,7 @@ final class TabTitleEditor: NSObject, NSTextFieldDelegate {
///
/// If this returns true then the event was handled by the coordinator.
func handleRightMouseDown(_ event: NSEvent) -> Bool {
guard event.type == .rightMouseDown else { return false }
if isMouseEventWithinEditor(event) {
inlineTitleEditor?.rightMouseDown(with: event)
return true