I'm developing a Flutter desktop app and I have to process raw keyboard input (custom drawn control that handles user input).
For this I'm using a TextInputClient
and a TextInputConfiguration
that gets registered via TextInput.attach(client, config)
.
I have everything working but when I long-press a key on MacOS then I receive one key press and then MacOS shows the accent selection popup.
Is there any way to prevent MacOS from doing that? I tried all different variations of TextInputConfiguration
parameters but MacOS doesn't care.
The text handling is too much code to paste it here but when needed or not obvious I can create a small sample that shows the problem.