• Greg Spencer's avatar
    Make modifier key side handling consistent among platforms (#63417) · 54095e1b
    Greg Spencer authored
    This makes the processing of RawKeyboardEventData.getModifierSide consistent among the platforms.
    
    Before this change, some platforms (Android) didn't handle the case where the "either" flag was set, but no side flag was set (e.g. "shift" was set, but not "shift left"), and instead said that no keys were down by returning null (which was wrong).
    
    Some platforms (Linux, Windows) also returned KeyboardSide.any from getModifierSide, when the contract says that it will never return KeyboardSide.any. Those methods now return KeyboardSide.all in the case where no side is specified, as macOS and Fuchsia already did.
    
    Now, all platforms will return KeyboardSide.all from getModifierSide when it's not clear which side the key was on.
    54095e1b
Name
Last commit
Last update
..
_flutter_web_build_script Loading commit data...
flutter Loading commit data...
flutter_driver Loading commit data...
flutter_goldens Loading commit data...
flutter_goldens_client Loading commit data...
flutter_localizations Loading commit data...
flutter_test Loading commit data...
flutter_tools Loading commit data...
flutter_web_plugins Loading commit data...
fuchsia_remote_debug_protocol Loading commit data...
analysis_options.yaml Loading commit data...