The wrong window sometimes closes when using the close window keyboard shortcut in Anki for Mac Version 24.11 (87ccd24e).
Repro steps:
- Open the Anki application.
- In the main (User 1) window, click Add (to open the Add window) and then click Browse (to open the Browse window).
- Click the title bar of the Add window, to focus it.
- Press command-w.
Expected: the Add window should close, since it’s focused.
Actual: the Browse window closes.