Index: content/browser/renderer_host/input/web_input_event_util.cc |
diff --git a/content/browser/renderer_host/input/web_input_event_util.cc b/content/browser/renderer_host/input/web_input_event_util.cc |
index bdbec745a52b4083f816a9d3b7aa86cc2c4e844e..e98bbd77d14a89f28b7c33d9fdb4fdebcead212d 100644 |
--- a/content/browser/renderer_host/input/web_input_event_util.cc |
+++ b/content/browser/renderer_host/input/web_input_event_util.cc |
@@ -400,6 +400,8 @@ int EventFlagsToWebEventModifiers(int flags) { |
modifiers |= blink::WebInputEvent::CapsLockOn; |
if (flags & ui::EF_IS_REPEAT) |
modifiers |= blink::WebInputEvent::IsAutoRepeat; |
+ if (flags & ui::EF_NUMPAD_KEY) |
+ modifiers |= blink::WebInputEvent::IsKeyPad; |
return modifiers; |
} |
@@ -426,6 +428,8 @@ int WebEventModifiersToEventFlags(int modifiers) { |
flags |= ui::EF_CAPS_LOCK_DOWN; |
if (modifiers & blink::WebInputEvent::IsAutoRepeat) |
flags |= ui::EF_IS_REPEAT; |
+ if (flags & blink::WebInputEvent::IsKeyPad) |
jdduke (slow)
2014/09/25 15:55:37
Hmm, pretty sure this should be |modifiers| and no
Seigo Nonaka
2014/09/25 16:06:45
Ugh, I'm sorry for my mistake.
|
+ flags |= ui::EF_NUMPAD_KEY; |
return flags; |
} |