Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@bleroux
Copy link
Contributor

@bleroux bleroux commented Oct 18, 2022

Description

This PR adds modifiers accessors (altKey, ctrlKey, metaKey, shiftKey) to DomTouchEventExtension, as defined in the current W3C specification: https://www.w3.org/TR/touch-events/#attributes-2

Motivation

Those accessors are needed to implement #36724.
See this review comment: #36724 (review).

Related Issue

Fixes flutter/flutter#113605

Tests

Update 3 tests

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Oct 18, 2022
@bleroux bleroux changed the title Add DOM TouchEvent modifier accessors Add DOM TouchEvent modifiers accessors Oct 18, 2022
@bleroux bleroux requested a review from dkwingsmt October 18, 2022 14:00
}
}

mixin _KeyboardModifiersMixin on _BasicEventContext {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My memory to this file is getting vague, but since this mixin is used for all three event classes, can we just add these new properties to _BasicEventContext?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just add these new properties to _BasicEventContext?

Done, my first implementation was more complex so I did not want to clutter _BasicEventContent.

@bleroux bleroux requested a review from dkwingsmt October 18, 2022 19:56
Copy link
Contributor

@dkwingsmt dkwingsmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bleroux bleroux added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 19, 2022
@auto-submit auto-submit bot merged commit f32d290 into flutter:main Oct 19, 2022
@bleroux bleroux deleted the add_dom_touch_event_modifiers-accessors branch October 19, 2022 06:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Web] - Expose DomTouchEvent modifier accessors

2 participants