If the shortcut Toggle between editor&sidebar and only sidebar is pressed, and if there is a toggle, then the focus should also toggle (if it toggles to editor&sidebar, the focus or rather the cursor should be in the editor; if it toggles to only sidebar, the focus should be in the content area of the sidebar).
This should be simple to code because there is already code that works for the shortcut "Switch to Editor" and for the shortcut "Switch to Sidebar".
Today I recognized that for this issue one need to change the memory for the width of the sidebar. The memory should be something like this:
IF memory width=100% THEN do not remember width of sidebar.
That would allow this scene:
- condition: only editor is visible (so, no sidebar)
- press the shortcut "Toggle Sidebar" (result: editor&sidebar are both visible)
- press again the shortcut "Toggle Sidebar" (result: only editor is visible, so no sidebar)
- press the shortcut "Toggle between only editor and only sidebar" (result: only sidebar is visible)
- press again the shortcut "Toggle between only editor and only sidebar" (result: only editor is visible)
- press the shortcut "Toggle Sidebar" (result: editor&sidebar are both visible)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/4251/2693984871@github.com>
If the shortcut Toggle between editor&sidebar and only sidebar is pressed, and if there is a toggle, then the focus should also toggle (if it toggles to editor&sidebar, the focus or rather the cursor should be in the editor; if it toggles to only sidebar, the focus should be in the content area of the sidebar).
This should be simple to code because there is already code that works for the shortcut "Switch to Editor" and for the shortcut "Switch to Sidebar".
Today I recognized that for this issue one need to change the memory for the width of the sidebar. The memory should be something like this:
IF memory width=100% THEN do not remember width of sidebar.
That would allow this scene:
- condition: only editor is visible (so, no sidebar)
- press the shortcut "Toggle Sidebar" (result: editor&sidebar are both visible)
- press again the shortcut "Toggle Sidebar" (result: only editor is visible, so no sidebar)
- press the shortcut "Toggle between only editor and only sidebar" (result: only sidebar is visible)
- press again the shortcut "Toggle between only editor and only sidebar" (result: only editor is visible)
- press the shortcut "Toggle Sidebar" (result: editor&sidebar are both visible)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/4251/2693984871@github.com>