Index: ui/events/ozone/evdev/keyboard_evdev.cc |
diff --git a/ui/events/ozone/evdev/keyboard_evdev.cc b/ui/events/ozone/evdev/keyboard_evdev.cc |
index cbd18904e45a19d748b6caa4f93846e63931639a..2f1c6e0385a5d4798aa49d0c787502d809ba6582 100644 |
--- a/ui/events/ozone/evdev/keyboard_evdev.cc |
+++ b/ui/events/ozone/evdev/keyboard_evdev.cc |
@@ -212,11 +212,8 @@ void KeyboardEvdev::DispatchKey(unsigned int key, |
int flags = modifiers_->GetModifierFlags(); |
DomKey dom_key; |
KeyboardCode key_code; |
- uint32 platform_keycode = 0; |
- if (!keyboard_layout_engine_->Lookup(dom_code, flags, &dom_key, |
- &key_code, &platform_keycode)) { |
+ if (!keyboard_layout_engine_->Lookup(dom_code, flags, &dom_key, &key_code)) |
return; |
- } |
if (!repeat) { |
int flag = ModifierDomKeyToEventFlag(dom_key); |
UpdateModifier(flag, down); |
@@ -225,8 +222,7 @@ void KeyboardEvdev::DispatchKey(unsigned int key, |
KeyEvent event(down ? ET_KEY_PRESSED : ET_KEY_RELEASED, key_code, dom_code, |
modifiers_->GetModifierFlags(), dom_key, timestamp); |
event.set_source_device_id(device_id); |
- if (platform_keycode) |
- event.set_platform_keycode(platform_keycode); |
callback_.Run(&event); |
} |
+ |
} // namespace ui |