Open PaulBGD opened 8 years ago
This depends on the order of event delivery, which probably varies from platform to platform. Let's look into it anyway.
Actually wait, what would this be used for?
For mouse clicks, it could be useful to detect when a mouse clicks anywhere in your application (even on the background.) With key presses, they could be used to detect shortcuts and such. For mouse movement, I'm sure there's several use cases such as how Putty generates entropy by having you move your mouse.
Partial merge with andlabs/libui#325. I have other comments to make; will make them later.
Currently there's not really a good way to listen to events that occur globally inside the window. Such as a mouse click, key press, or mouse movement. It'd be nice if some of the events we have for the area component were on the window as well.