macos: passthrough right mouse down event to TabTitleEditor if needed (#11150)
parent
5de30c0dce
commit
51cd63871d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue