Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1362)

Unified Diff: content/browser/renderer_host/input/web_input_event_util.cc

Issue 590953002: Support isKeyPad modifier flag in Chrome OS and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support invert conversion Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/web_input_event_aura_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | content/browser/renderer_host/web_input_event_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698