Chromium Code Reviews| Index: content/browser/renderer_host/input/web_input_event_builders_android.cc |
| diff --git a/content/browser/renderer_host/input/web_input_event_builders_android.cc b/content/browser/renderer_host/input/web_input_event_builders_android.cc |
| index 6ccde311950b19cc20e0ecc771edcb6ff68ca0f5..c0ffc1b068390dd81b3aa1d67fcbf8c4fc405fef 100644 |
| --- a/content/browser/renderer_host/input/web_input_event_builders_android.cc |
| +++ b/content/browser/renderer_host/input/web_input_event_builders_android.cc |
| @@ -45,6 +45,10 @@ ui::DomKey GetDomKeyFromEvent( |
| int keycode, |
| int modifiers, |
| int unicode_character) { |
| + // Synthetic key event, not enough information to get DomKey. |
| + if (android_key_event.is_null() && !unicode_character) |
| + return ui::DomKey::UNIDENTIFIED; |
|
chongz
2016/03/17 15:50:39
Sorry for the confusing logic... Will this look be
|
| + |
| if (!unicode_character && env) { |
| // According to spec |kAllowedModifiers| should be Shift and AltGr, however |
| // Android doesn't have AltGr key and ImeAdapter::getModifiers won't pass it |