Test project for a macOS Mojave related QPlainTextEdit issue with accented characters.
If a QPlainTextEdit is used on macOS Mojave and a accented character is typed then QPlainTextEdit blocks user actions like text selection. This behaviour occurs when the accent character is pressed and a user tries to select text, like he wants to abort the writing of a composed character. With Qt 5.11.2, 5.11.3 and 5.12.0 the QPlainTextEdit blocks text selection if the first half of a composed character is written.
Steps to reproduce the issue
- Make sure you have a German or French keyboard layout configured
- Write some random text, like "asdfkasklfhkashgkg"
- Go to a new line
- Type
´
, like you would typeá
- Do not press
a
! - Try to select the random text with the mouse
Result: The text selection on macOS is not possible, but on Windows 10 it works. Other apps like RStudio or the native TextEdit on macOS Mojave don't seam to have that issue.