Before we were assuming that receiving a callback meant that the window was in that "key" state accordingly, but with popups that's not always the case. In particular, there was a bug that caused an unrelated window to receive `windowDidBecomeKey` when making an `NSPanel` the key window.