• Greg Spencer's avatar
    Adding support for logical and physical key events (#27627) · 431cfdaf
    Greg Spencer authored
    This adds support for logical and physical key information inside of RawKeyEvent. This allows developers to differentiate keys in a platform-agnostic way. They are able to tell the physical location of a key (PhysicalKeyboardKey) and a logical meaning of the key (LogicalKeyboardKey), as well as get notified of the character generated by the keypress. All of which is useful for handling keyboard shortcuts.
    
    This PR builds on the previous PR (#27620) which generated the key code mappings and definitions.
    431cfdaf
key_data.dart 13.9 KB