Add two event system cleanup TODOs (#26678)
There is so much old stuff in these files. I am weeping.
This commit is contained in:
parent
767f52237c
commit
22d5942675
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue