How to add Window Switch (Cmd-`) without MenuItem

On Mac, one of the shortcuts to switch between open windows is Cmd-. On PC I believe the shortcut is Control-Tab. (Most programs now don't have windows that aren't their own app). XOJO is built with XOJO. How does XOJO code it so the shortcut Cmd- (apostrophe) is coming from the APP and there is no menuitem for next window? The App has no KeyDown event, but it is apparently there.

This is default behavior on Mac and not something Xojo is doing custom. Try it in other apps, you’ll see that it works for them too.

Right. My question is how does it get coded? No menuitem. No keydown event.
To Put it differently, I want to do what XOJO does

This is implemented by the OS just like screen shots, etc.

Command-Tab scrolls to the right, Command-` scrolls to the left. It’s the OS.

Command-Tab scrolls thru the Applications and can go forward and backward (add shift).
Command-`scrolls thru the open windows of the frontmost application, forward only.

Check yourself.

@Emile Schwarz, Command-Shift-Tab scrolls backward through Applications.
Wouldn’t it be logical that Command-Shift-`can be used to scroll backwards through the open windows?
I just tested it and it does. :wink:

I tested that and it does not do it, so I wrote my results.

And, you are right, it makes sense (Command-Shift-`to scroll backward).

BTW: AZERTY French Keyboard. `is on the bottom of the Key, while £ is in the top of the same Key. That may be the explanation.
El Capitan: I do not think this had changed.

[quote]Emile Schwarz 8 hours ago Europe (France, Strasbourg)
This is implemented by the OS just like screen shots, etc.[/quote]
It is not implemented by the OS. I just tested it on my app in the debugger. It isn’t implemented unless I encode it.
If someone knows I’d be thankful. There even are no dummy menuitems

Have you tried after building your app?
This behaviour may work when running a compiled program.

@Emile Schwarz
That must be it.
I have a qwerty keyboard and there the shift key together with the command-` scrolls backwards.

Never Mind.
I removed my header menuitem with the shortcuts in the enable menuitem. It works. I didn’t pretest my assumption.

If so, who add it to my machine ?
In my other accounts / boot hd who never know what Xojo is ?

Or we do not understand (that happens, sometimes).