Modifier keys state should also be synchronized based on pointer events #115066
Labels
a: desktop
Running on desktop
a: text input
Entering text in a text field or keyboard related problems
engine
flutter/engine repository. See also e: labels.
P2
Important issues not at the top of the work list
platform-web
Web applications specifically
r: fixed
Issue is closed as already fixed in a newer version
Uh oh!
There was an error while loading. Please reload this page.
On Desktop and Web, Flutter maintains keyboard state based on key events received when the window has focus.
If a keyboard event happens when the window has lost focus, Flutter keyboard state is not updated.
This leads to visible bugs, especially ones related to modifier keys. See #112488
Steps to Reproduce
Expected results: At step 8, the click should just move the cursor and no text should be selected
Actual results: At step 8, the click updates the selection (as the shift key was still pressed).
Code sample
As per this discussion, the modifier keys states should be also updated based on pointer events (which contain a modifier state property).
This should be implemented on the engine side for:
The text was updated successfully, but these errors were encountered: