Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
WidgetAnnotationElement._getKeyModifier
to account for Linux
Currently the `WidgetAnnotationElement._getKeyModifier` method will always be falsy on Linux, which seems like a simple oversight. Looking at all the other `FeatureTest.platform` accesses we only handle the `isMac`-case specially, and it seems reasonable to do the same thing here. The reason that this hasn't led to any bug reports is most likely that the `modifier`-property seems completely unused in the scripting-implementation. Finally, with these changes we can (slightly) simplify the `FeatureTest.platform` implementation.
- Loading branch information