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..ee733149cd93fbe55d171722c4ba588c84d71e0e 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 (modifiers & blink::WebInputEvent::IsKeyPad) |
+ flags |= ui::EF_NUMPAD_KEY; |
return flags; |
} |