Add two event system cleanup TODOs (#26678)

There is so much old stuff in these files. I am weeping.
This commit is contained in:
Sophie Alpert 2023-04-19 18:41:46 -07:00 committed by GitHub
parent 767f52237c
commit 22d5942675
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,8 @@ function extractEvents(
// Firefox creates a keypress event for function keys too. This removes
// the unwanted keypress events. Enter is however both printable and
// non-printable. One would expect Tab to be as well (but it isn't).
// TODO: Fixed in https://bugzilla.mozilla.org/show_bug.cgi?id=968056. Can
// probably remove.
if (getEventCharCode(((nativeEvent: any): KeyboardEvent)) === 0) {
return;
}
@ -95,6 +97,8 @@ function extractEvents(
case 'click':
// Firefox creates a click event on right mouse clicks. This removes the
// unwanted click events.
// TODO: Fixed in https://phabricator.services.mozilla.com/D26793. Can
// probably remove.
if (nativeEvent.button === 2) {
return;
}