Tab order in the IDE new method

Not by default. You changed a setting to get that.

I just tested Xojo 2021r2.1 and tab fall somewhere, the next tab is in the search (? or go to ? topleft, above the navigation pane).

At last, it was a long time since I tried that.

Something have been changed in 2022r1.1.

Xojo 2022r2: same as 2022r1.1.

macOS (Monterey) 12.5.1
m1 MacBook Pro

That’s a Mac thing and nothing to do with Xojo. By default the Mac will only ever tab into text field and text box controls. on later OS versions the setting is in System Preferences > Keyboard > Shortcuts > Use keyboard navigation to move focus between controls. (at the bottom of the window.)

It’s the second setting I change on any new Mac I use, after turning off “Natural” scroll option.

That is what I said: not by default.

A reader may be confused ans ask why it does not works that way on its own machine.

Sure, I forgot about the setting, I’ve used it so long. Certainly worth mentioning.

I call that “Developer’s Syndrom”. It usually manifest itself when the developer says “It works here”.

Explanation:
it works here because I have the required font / library / setting / whatever that is not set as standard (manufacturing settings).

I suffer from that around 40 years ago and I try to avoid falling in that trap, but it is not an easy task.

still a problem.
I create a new method on 2022r2
enter the name TAB enter the parameters TAB enter the return type TAB
and I am on the search navigator filter, I should be on the method code.
another TAB → navigator
another TAB → somewhere
TAB TAB and then only I’m in the method code.

Got it. If you have what used to be called “Full keyboard access” turned on, now on later OS versions the setting is in System Preferences > Keyboard > Shortcuts > Use keyboard navigation to move focus between controls. (at the bottom of the window.)

It navigates correctly:

  • Method name
  • Parameters
  • Return type
  • Scope
  • Method code

With that setting turned off it does what you describe:

  • Method name
  • Parameters
  • Return type
  • Navigator filter

Is there an active issue for this I can update or I am happy to create one.

If you can live with the setting on, it solves the problem.

1 Like

Yes, but it is useful if you then continue and discover what the difference is. Knowing that it works for some and not others can help to find the cause.

I’ve created an issue, feel free up vote:
https://tracker.xojo.com/xojoinc/xojo/-/issues/69855

1 Like

nice catch !

It bother me the same way all the time. Very annoying to have thoughts/code going into the paramter decl