Thanks for reporting this.
At the moment there are still many situations where you “lose” the current focus. This is a little bit annoying because it it interrupts your workflow.
E.g. when you collapse an outline with the shortcut you also lose the focus.
I also reported similar problems here:
and here:
I hope the dev team will find and fix all those situations where Logseq loses the focus.