Text Editor loses focus when it should not

You can recreate this in the demo.

  1. Go to the MDIDemo.cpp
  2. In the Note constructor add the line editor.setSelectAllWhenFocused(true);
  3. Now run the MDI Demo
  4. Try to single click on different words in the text editor,. Notice the whole text stays selected.

This is because every time you click the text editor, it is losing focus then getting it back.

It seems something to do with a DocumentWindow being a child to another component.

Thanks in advance for any help

That sounds like a bug that Ed fixed yesterday - can you try again?

It still happens. I tried the latest develop branch. tested with the same steps

  1. Go to the MDIDemo.cpp
  2. In the Note constructor add the line editor.setSelectAllWhenFocused(true);
  3. Now run the MDI Demo
  4. Try to single click on different words in the text editor,. Notice the whole text stays selected.