• Greg Spencer's avatar
    Synchronize modifier keys in RawKeyboard.keysPressed with modifier flags on events. (#43948) · 028ed712
    Greg Spencer authored
    Currently, we listen to keyboard events to find out which keys should be represented in RawKeyboard.instance.keysPressed, but that's not sufficient to represent the physical state of the keys, since modifier keys could have been pressed when the overall app did not have keyboard focus (especially on desktop platforms).
    
    This PR synchronizes the list of modifier keys in keysPressed with the modifier key flags that are present in the raw key event so that they can be relied upon to represent the current state of the keyboard. When synchronizing these states, we don't send any new key events, since they didn't happen when the app had keyboard focus, but if you ask "is this key down", we'll give the right answer
    028ed712
Name
Last commit
Last update
..
lib Loading commit data...
test Loading commit data...
BUILD.gn Loading commit data...
README.md Loading commit data...
build.yaml Loading commit data...
pubspec.yaml Loading commit data...