Closed ralf3u closed 2 years ago
I just realized that when shortcut "Toggle Sidebar" is pressed (what corresponds to the shortcut "Toggle editor" in the report), and then "Toggle focus between the editor and sidebar", that the highlighted line is still there.
At the moment the "steps to reproduce" can't be followed because the shortcuts "Toggle editor" and "Toggle sidebar" don't exist inside the plugin. So they are just fictional scenarios.
steps to reproduce
possible result the highlighted line is not there any more
expectation the highlighted line should stay in the editor because it makes no sense to let it disappear
possible solution every time when shortcut "Toggle focus between the editor and preview" is pressed, this should be first executed somewhere in the code of the shortcut "Toggle focus between the editor and preview": check if "Toggle editor" is active; if yes: don't execute "Toggle focus between the editor and preview" so, a state file in the shortcut "Toggle focus between the editor and preview" is not necessary
steps to reproduce
for this case, a solution is not necessary, because it could be that someone has a special effect when the webpage is in focus, and the user wants to see the difference between webpage is in focus and not in focus
order of development before to solve this issue, first https://github.com/xiota/geany-preview/issues/37 and https://github.com/xiota/geany-preview/issues/38 should be solved and checked, because maybe other problems will appear