ralf3u left a comment (geany/geany#2914)
The last sentence of the last comment is:
IF message window or VTE have focus, THEN do nothing.
I forgot to mention the reason. The reason is that the shortcut should do EXACTLY what the name of the shortcut is saying, and nothing else: `Toggle focus between editor and sidebar`