| Index: remoting/protocol/host_event_dispatcher.cc
|
| diff --git a/remoting/protocol/host_event_dispatcher.cc b/remoting/protocol/host_event_dispatcher.cc
|
| index 6ba6dd0f258f5c1e30f7fca0cbabfdc6855bb68d..f589e0d0a2c1bfba9c47513b795d59162d195bcb 100644
|
| --- a/remoting/protocol/host_event_dispatcher.cc
|
| +++ b/remoting/protocol/host_event_dispatcher.cc
|
| @@ -38,8 +38,7 @@ void HostEventDispatcher::OnMessageReceived(
|
|
|
| if (message->has_key_event()) {
|
| const KeyEvent& event = message->key_event();
|
| - if ((event.has_keycode() || event.has_usb_keycode()) &&
|
| - event.has_pressed()) {
|
| + if (event.has_usb_keycode() && event.has_pressed()) {
|
| input_stub_->InjectKeyEvent(event);
|
| } else {
|
| LOG(WARNING) << "Received invalid key event.";
|
|
|