github/Rebel — pull request #41 by luosheng (2012-10-24 17:34:56+00:00)
Title: Popover window should act like a key window.

Sorry about the mistakes in #39. I've just realized that a window doesn't need to become key window to receive mouseMoved events. It just need to act like a key window by always returning `YES` in its `isKeyWindow` method.

So in this PR, I still subclass the NSWindow but override the `isKeyWindow` method instead. Now, when the popover is presented, the main window will remain key status to receive keyboard events and such. While the popover is faking itself as a key window to receive mouseMoved events.