This functionality is the same as this one Description:
The given: In the current desktop there is one terminal and Safari open, and in another desktop there is another terminal window. Desired is to cycle open windows in the current desktop.
The problem: When I use preferences -> shortcuts -> keyboard -> center in active window or next, (the default shortcut is ^F4 I think), in many cases it jumps to the terminal in the other desktop.
This happens with other apps that can open in sevaral windows. I raise terminal as an example.
hs.exposelibrary of hammerspoon as mentioned in this post results the same.
Please to not offer closed source software.
Thanks in advance,