mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
macos: passthrough right mouse down event to TabTitleEditor if needed (#11150)
This commit is contained in:
@@ -184,6 +184,10 @@ class TerminalWindow: NSWindow {
|
||||
return
|
||||
}
|
||||
|
||||
if tabTitleEditor.handleRightMouseDown(event) {
|
||||
return
|
||||
}
|
||||
|
||||
super.sendEvent(event)
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user