@elextr Sorry, but it could be that I don't understand what you mean. So I try to describe the functionality of an imaginary shortcut "toggle editor/sidebar":
By pressing an imaginary shortcut "toggle editor/sidebar", the focus should switch to the place that is not in focus, when the focus is at the moment editor or sidebar. That means: - if the editor is in focus, and then if the user press the imaginary shortcut "toggle editor/sidebar", then the sidebar should be in focus - if the sidebar is in focus, and then if the user press the imaginary shortcut "toggle editor/sidebar", then the editor should be in focus
Now if the focus is not on the editor and not on the sidebar, then by pressing an imaginary shortcut "toggle editor/sidebar", Geany should put the focus on the editor.
Please leave a message if I didn't answer your question.