Bug 1321245 - Request native key bindings for delayed keypress events. r=smaug

This commit is contained in:
Jessica Jong
2016-12-02 00:41:00 -05:00
parent 3ab91265f9
commit 8e34fa1651
3 changed files with 9 additions and 4 deletions

View File

@@ -326,7 +326,8 @@ PuppetWidget::DispatchEvent(WidgetGUIEvent* event, nsEventStatus& aStatus)
"Unexpected event dispatch!");
AutoCacheNativeKeyCommands autoCache(this);
if (event->mFlags.mIsSynthesizedForTests && !mNativeKeyCommandsValid) {
if ((event->mFlags.mIsSynthesizedForTests ||
event->mFlags.mIsSuppressedOrDelayed) && !mNativeKeyCommandsValid) {
WidgetKeyboardEvent* keyEvent = event->AsKeyboardEvent();
if (keyEvent) {
mTabChild->RequestNativeKeyBindings(&autoCache, keyEvent);