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

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: Rebase to HEAD 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..485185dc9c8ab71c1bef9f516b2b70dbaee052a2 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;
jdduke (slow) 2014/09/24 21:03:44 Don't you want a corresponding inverse conversion
Seigo Nonaka 2014/09/25 03:57:47 Yes! Added inverse conversion. Thanks. On 2014/09
return modifiers;
}
« 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