Hi! I’m facing this issue, where the TextEditor seems to gain keyboard focus briefly (caret appears) but then loses it immediately again. The focus is gained by calling grabKeyboardFocus().
I’ve tested the methods focusGained()focusLost() and the assignable lambda onFocusLost() and from the output it seems the focus is gained, but never lost.
However, if I check hasKeyboardFocus(), it will return false. So it hasn’t lost keyboard focus, but still doesn’t have it?
When I manually click inside the editor again, another focusGained() will appear, before ever calling a focusLost().
What could be the issue here? This only happens on Linux. Win and Mac work fine.
JUCE 7.0.1 (just realizing now I might want to try upgrading JUCE…)
On Linux you need to give a bit more context. Like which window manager or desktop environment are you using? Is it on Xorg or Wayland (with xwayland) ?