You can ignore mouse events in a window/view by adding just a single line of code.
window.ignoresMouseEvents = true
Or,
view.ignoresMouseEvents = true
You can ignore mouse events in a window/view by adding just a single line of code.
window.ignoresMouseEvents = true
Or,
view.ignoresMouseEvents = true
If this article was helpful, others might be too
Before launching the window, just use the appropriate window level, and you’re done.
For me personally, it is a mixed feeling working from home. On one hand, I have the flexibility with when to work and when not to but on the other hand, it is sometimes hard for me to find that fine line between work and life. There are days when I keep working even after office hours without realizing that I have got my life wife too :)
You can override the flagsChanged() method of NSViewController and have your code like below to detect fn key press and release in macOS: