If I click away from Krita my shortcuts break [5.1.1]

combinations and single hotkeys, including those for navigation and brush size. It happens with both mouse and stylus.

It happens when I focus on a different window or minimize krita. The pop up palette stops appearing as well.
The workarounds I’ve seen did not work for me.

exact same issue I think:

https://www.reddit.com/r/krita/comments/vtstpb/shortcuts_stop_working/

older versions:
Navigation shortcuts aren't working anymore (same issue, older version)
Modifiers stop working after some time (+ how to make Krita remember the brush size)

similar bugs but different causes—apparently it’s among many “focus issues”: