ralf3u created an issue (geany/geany#4256)

**Steps to reproduce**
1. condition: only the editor is visible (so, no sidebar); the editor has focus
2. press the shortcut "Toggle Sidebar" to let appear the sidebar
3. click with left key of the mouse on the vertical line between editor and 
sidebar, and move the vertical line so far till the edge of the Geany window, 
so that sidebar has 100% width (result: editor is not more visible; the 
content-area of the sidebar is not in focus what is already described in issue 
4254)
4. press again the shortcut "Toggle Sidebar" to let disappear the sidebar 
(result: only the editor is visible; the editor is not in focus because before 
the point 4, the content-area of the sidebar was not in focus)
5. click in the content-area of the editor to put editor in focus
6. press again the shortcut "Toggle Sidebar" to let appear the sidebar (result: 
there is no editor)

**Result**
Neither the tab-title nor the content-area of the sidebar have focus. Something 
else of the sidebar is in focus, and I think it is the frame around the sidebar.
I would like to give the reason why something in the sidebar is in focus:
If I press only one time the arrow-left-key, the arrow-right-key or the 
arrow-up-key, then the content-area of the sidebar has focus.
I would like to give the reason why maybe the frame around the sidebar is in 
focus:
If I press one time the arrow-down-key, then only the tab-title of the sidebar 
is in focus, but not the content-area of the sidebar. So, it seems to be that 
with the arrow-down-key there is a navigation from the frame around the sidebar 
to the tab-title of the sidebar, so the navigation is going downwards. 
(Annotation: I have to press again one time the arrow-down-key, so that also 
the content-area of the sidebar is in focus. The reason why the arrow-down-key 
needs to be pressed again one time is maybe because of #3966).

**Expectation**
The content-area of the sidebar should be in focus.

**Possible solution**
Shortcut "Toggle Sidebar": When sidebar goes to enable, then something like 
this should be fired:
`If sidebar has width=100% THEN set the content-area of the sidebar in focus.`
The first part is working (IF sidebar width=100% ...), because something in the 
sidebar is in focus. But the second part (... THEN set the content-area of the 
sidebar in focus) there is at the moment something else in focus than the 
content-area of the sidebar. To set the content-area of the sidebar in focus 
can be done with the code of the shortcut "Switch to Sidebar" because there the 
code works correctly.

**Recommendation**
If I would be a software developer, then I would not fix this issue. I would 
fix right away issue #4251 and #4252, because if those two issues are fixed, 
then there is no need to fix this issue, because then the shortcut "Toggle 
Sidebar" will never go to sidebar width=100%  because sidebar width=100% will 
not be remembered (see explication in 
https://github.com/geany/geany/issues/4251#issuecomment-2693984871 and in 
https://github.com/geany/geany/issues/4252#issuecomment-2693990759).

**System**
Lubuntu 24.10
Geany 2.0

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4256
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/4...@github.com>

Reply via email to