mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
macOS: fix mouse not working correctly in CommandPaletteView (#11658)
This commit is contained in:
@@ -652,6 +652,14 @@ extension Ghostty {
|
||||
}
|
||||
|
||||
private func localEventLeftMouseDown(_ event: NSEvent) -> NSEvent? {
|
||||
let isCommandPaletteVisible = (event.window?.windowController as? BaseTerminalController)?
|
||||
.commandPaletteIsShowing == true
|
||||
guard !isCommandPaletteVisible else {
|
||||
// We don't want to process events that
|
||||
// are supposed to be handled by CommandPaletteView
|
||||
return event
|
||||
}
|
||||
|
||||
// We only want to process events that are on this window.
|
||||
guard let window,
|
||||
event.window != nil,
|
||||
|
||||
Reference in New Issue
Block a user