Author Topic: Keyboard navigation: Focus tool windows  (Read 172 times)

fulltimedev

  • Newbie
  • Posts: 6
Keyboard navigation: Focus tool windows
« on: August 30, 2026, 04:38:18 pm »
I am using Lazarus in single window mode on Windows. How can I focus a tool window like the code explorer or project inspector (and get back to the editor window) with the keyboard only?
Using the menu item say for the project inspector opens the window but does not set the focus. On the other hand, how do I get back to the code editor when the focus is in any of the tool windows?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12731
  • Debugger - SynEdit - and more
    • wiki
Re: Keyboard navigation: Focus tool windows
« Reply #1 on: August 30, 2026, 04:53:07 pm »
First of all I don't use anchordocking. So I can't comment on the "open but not focus". But if the same command works in the undocked IDE, such that it does set the focus, then that might mean that there is a bug in anchor docking.

As for the key-combos mention: They can all be set in: Tools >Options > Editor > Key Map

In the undocked IDE I can use e.g ctrl-alt-return to go to (and focus) the code explorer. On first time, I then still need to tab inside the code explorer, if I want maybe the tree to be focused.

For getting back there is "Toggle view source editor" in the "KeyMap". Assign a key, and it takes you to the editor.

fulltimedev

  • Newbie
  • Posts: 6
Re: Keyboard navigation: Focus tool windows
« Reply #2 on: August 30, 2026, 05:24:45 pm »
There seems indeed to be bug with focus management when using anchordocking. Without it everything seems to work like expected.

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.

n7800

  • Hero Member
  • *****
  • Posts: 779
  • Lazarus IDE contributor
    • GitLab profile
Re: Keyboard navigation: Focus tool windows
« Reply #3 on: August 31, 2026, 12:24:38 am »
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.

Replied in the relevant thread: https://forum.lazarus.freepascal.org/index.php/topic,74871.msg589561.html#msg589561

n7800

  • Hero Member
  • *****
  • Posts: 779
  • Lazarus IDE contributor
    • GitLab profile
Re: Keyboard navigation: Focus tool windows
« Reply #4 on: August 31, 2026, 12:32:15 am »
I am using Lazarus in single window mode on Windows. How can I focus a tool window like the code explorer or project inspector (and get back to the editor window) with the keyboard only?
Using the menu item say for the project inspector opens the window but does not set the focus. On the other hand, how do I get back to the code editor when the focus is in any of the tool windows?

There seems indeed to be bug with focus management when using anchordocking. Without it everything seems to work like expected.

Known issue, see issues #41265, #40166 and related ones.

 

TinyPortal © 2005-2018