Closed mromanbanks closed 1 year ago
Interesting... I have a feeling the underlying NSPanel
of FluidMenuBarExtra is losing key or main status when the sheet opens, but not entirely sure.
Definitely a bug, I'll have a look. If you have an idea of how to fix it, contributions are welcome!
(I do think sheets from a menu make for a questionable UX, though. 😉)
One possible workaround is to change the implementation. In my fork I deleted the:
func windowDidResignKey(_ notification: Notification) {
globalEventMonitor?.stop()
dismissWindow()
}
in the FluidMenuBarExtraStatusItem.swift
. Then, call dismissWindow only when global event was received and stop observing global events in the dismissWindow
method. This will alter behaviour of the window a little bit as it won't be dismissed whenever local event was received.
Going to close this as I don't think these kinds of sheets are quite part of what is familiar to the menu bar in terms of UX. I'd recommend presenting windows for these kinds of flows (file pickers could use a file picker window, for example).
If anyone would like to fix the specific bug that is occurring without affecting any other behaviour (such as dismissal) I'd still be more than happy to accept contributions for that.
Another observation is when you trying to open a sheet, the app is hidding automatically. Is there any workarounds?
https://user-images.githubusercontent.com/48674860/215326372-5bf79492-67e2-4ad1-ba30-5a06175aeddb.mov