From 3424afccaebc71c4acd4fa9eadf519c408c5965b Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 26 Apr 2019 14:13:32 +0200 Subject: Capture delayed events and cancel as necessary. Tag #1052 --- layout/base/nsPresShell.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layout/base/nsPresShell.h') diff --git a/layout/base/nsPresShell.h b/layout/base/nsPresShell.h index 7a9056a383..1a8dd3fefa 100644 --- a/layout/base/nsPresShell.h +++ b/layout/base/nsPresShell.h @@ -617,6 +617,7 @@ protected: public: virtual ~DelayedEvent() { } virtual void Dispatch() { } + virtual bool IsKeyPressEvent() { return false; } }; class DelayedInputEvent : public DelayedEvent @@ -641,6 +642,7 @@ protected: { public: explicit DelayedKeyEvent(mozilla::WidgetKeyboardEvent* aEvent); + virtual bool IsKeyPressEvent() override; }; // Check if aEvent is a mouse event and record the mouse location for later @@ -951,6 +953,8 @@ protected: // Whether the widget has received a paint message yet. bool mHasReceivedPaintMessage : 1; + bool mIsLastKeyDownCanceled : 1; + static bool sDisableNonTestMouseEvents; }; -- cgit v1.2.3