Author Topic: Object inspector: component tree not part of focus chain  (Read 232 times)

fulltimedev

  • Newbie
  • Posts: 6
Object inspector: component tree not part of focus chain
« on: August 30, 2026, 06:18:53 pm »
I did not find a way to select a specific component in the object inspector with the keyboard only. One can filter the components shown in the tree but has to grab the mouse to select any (if I do not miss something). As it appears the component tree is not part of the focus chain. Was this a deliberate decision?

n7800

  • Hero Member
  • *****
  • Posts: 779
  • Lazarus IDE contributor
    • GitLab profile
Re: Object inspector: component tree not part of focus chain
« Reply #1 on: August 31, 2026, 12:18:38 am »
I'm missing this too, and I have a draft patch for it. Just need to decide which keys will do what, so as not to cause conflicts and save useful shortcuts for the future. I don't remember where I left off, I'm busy with other things right now.
« Last Edit: August 31, 2026, 12:33:03 am by n7800 »

n7800

  • Hero Member
  • *****
  • Posts: 779
  • Lazarus IDE contributor
    • GitLab profile
Re: Object inspector: component tree not part of focus chain
« Reply #2 on: August 31, 2026, 12:23:50 am »
From your question in https://forum.lazarus.freepascal.org/index.php/topic,74870.msg589539.html#msg589539

Short follow up question: when in object inspector, how to focus the tree (with the keyboard)? With Alt+m I can navigate to the components filter but a Tab afterwards sends me pack to the properties skipping the component tree.

Yes, the [Tab] key is currently used for "clever" navigation between properties. In short: press [Tab] and focus will move to the property names column, then start typing the property name, and focus will immediately move to it.

For example, to quickly jump to the "Name" property, press [Tab] and type "N".

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4744
  • I like bugs.
Re: Object inspector: component tree not part of focus chain
« Reply #3 on: August 31, 2026, 12:15:24 pm »
Another missing feature in the component tree is changing Z-order by drag'n'drop.
Drag'n'drop works for changing parent.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12731
  • Debugger - SynEdit - and more
    • wiki
Re: Object inspector: component tree not part of focus chain
« Reply #4 on: August 31, 2026, 12:26:55 pm »
Another missing feature in the component tree is changing Z-order by drag'n'drop.
Drag'n'drop works for changing parent.
And by key.

You currently must select it on the form (or select in the tree, and the focus the design form without changing selection). Then you have ctrl-pg/up/down

fulltimedev

  • Newbie
  • Posts: 6
Re: Object inspector: component tree not part of focus chain
« Reply #5 on: August 31, 2026, 06:00:53 pm »
Another issue I tripped over: When in the form designer you can focus the object inspector with F11. But is there a key to go back to the form designer? As I understand it, F11 is supposed to toggle between these two views, but pressing it in the object inspector seems to do nothing.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4744
  • I like bugs.
Re: Object inspector: component tree not part of focus chain
« Reply #6 on: August 31, 2026, 06:13:37 pm »
Yes, a good point about F11. The designer and OI are closely related. The key should toggle back and forth just like F12 toggles between designer and editor.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

n7800

  • Hero Member
  • *****
  • Posts: 779
  • Lazarus IDE contributor
    • GitLab profile
Re: Object inspector: component tree not part of focus chain
« Reply #7 on: September 01, 2026, 11:02:43 pm »
I did not find a way to select a specific component in the object inspector with the keyboard only.

By the way, as a workaround, you can select a component in the Designer using the [Tab]/[Arrow]/[Esc] keys. The latter is used to select the parent component.

 

TinyPortal © 2005-2018