Index: mojo/services/html_viewer/blink_input_events_type_converters.cc |
diff --git a/mojo/services/html_viewer/blink_input_events_type_converters.cc b/mojo/services/html_viewer/blink_input_events_type_converters.cc |
index 4b2a0a1a641a9a6d7ba240528acd38083dacecfa..2e15c0d72b7929cc332ad668f6265e152aabe850 100644 |
--- a/mojo/services/html_viewer/blink_input_events_type_converters.cc |
+++ b/mojo/services/html_viewer/blink_input_events_type_converters.cc |
@@ -118,15 +118,9 @@ scoped_ptr<blink::WebInputEvent> BuildWebKeyboardEvent( |
web_event->timeStampSeconds = |
base::TimeDelta::FromInternalValue(event->time_stamp).InSecondsF(); |
- // TODO(erg): This derivation of is_char is a bad hack, and exists because |
- // the platform doesn't seem to be sending character events to us. |
- bool is_char = |
- event->key_data->is_char || |
- (event->key_data->key_code >= 32 && event->key_data->key_code < 127); |
- |
switch (event->action) { |
case EVENT_TYPE_KEY_PRESSED: |
- web_event->type = is_char ? blink::WebInputEvent::Char : |
+ web_event->type = event->key_data->is_char ? blink::WebInputEvent::Char : |
blink::WebInputEvent::RawKeyDown; |
break; |
case EVENT_TYPE_KEY_RELEASED: |