Commit 350887d8 authored by jsbell@chromium.org's avatar jsbell@chromium.org

Fix DOM KeyboardEvent 'repeat' state

The 'repeat' state of a DOM KeyboardEvent was always false. The
Aura->blink event modifier mapper was not plumbing it through. Do so!

BUG=263724,394907
TEST=document.body.onkeydown=function(e){console.log(e.repeat);};

Review URL: https://codereview.chromium.org/402613010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284263 0039d316-1c4b-4281-b951-d872f2087c98
parent aa1892b0
......@@ -258,6 +258,8 @@ int EventFlagsToWebEventModifiers(int flags) {
modifiers |= blink::WebInputEvent::RightButtonDown;
if (flags & ui::EF_CAPS_LOCK_DOWN)
modifiers |= blink::WebInputEvent::CapsLockOn;
if (flags & ui::EF_IS_REPEAT)
modifiers |= blink::WebInputEvent::IsAutoRepeat;
return modifiers;
}
......
......@@ -132,7 +132,7 @@ blink::WebKeyboardEvent MakeWebKeyboardEventFromAuraEvent(
webkit_event.setKeyIdentifierFromWindowsKeyCode();
// TODO: IsAutoRepeat/IsKeyPad?
// TODO: IsKeyPad?
return webkit_event;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment