Cycle application windows changed in recent update (2019)

keyboardmission-controlshortcutwindow-manager

I am used to pressing CMD+ ` on my mac to cycle through windows of the same application.

In recent updates, I am not sure if this was when updating to Mojave, maybe later, maybe before, this behavoiur changed.

I have 3 windows of an IDE (PhpStorm) and I used to be able to cycle reliably and predictably through them, similar to how you cycle between apps with CMD+TAB, but this behaviour is now very broken (or I don't understand it anymore)

It seems to choose a random window every time I press the combination instead of simply going the previously opened window.

Has anybody else noticed this? Can someone explain to me what is the logic behind? so I can wrap my brain around it and perhaps be agile again :p

ps. I mentioned my IDE because IDEs tend to overwrite OS shortcuts, so I am only about 90% sure it is macOs's fault, but it could be the IDE's fault.

Best Answer

I use PhpStorm 2019.2 on macOS 10.14.6 Mojave. The behavior/logic for CMD + ` is not any different from how it has been in any relatively recent version of macOS or PhpStorm.

Pressing CMD + ` switches to the most recently used window, unless you haven't done anything in the currently active window, in which case it switches to the next most recently opened window (and this pattern continues for however many windows you have open).

For example, let's say you have a file open in PhpStorm in window A, then open another file in window B, and finally a third file in window C. If you're working in window C and then press CMD + `, you'll be switched to window B. If you press CMD + ` again before doing anything else, you'll be switched to window A. However, if, instead, you work on the file in window B first, then when you press CMD + `, you'll be switched back to window C (the most recently open window). In order to reach window A, you must press CMD + ` twice without doing anything in the window that comes up after the first window switch.