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

Unified Diff: remoting/host/event_executor_linux.cc

Issue 10093001: Remove duplicate tests of KeyEvent::has_pressed (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 | remoting/host/event_executor_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/event_executor_linux.cc
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index d6b412ed0c6e35b3f23cc3c1716cc991dddf1f99..31e43b98510ecb95422895bcb6361aff1012cc78 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -325,10 +325,6 @@ void EventExecutorLinux::InjectKeyEvent(const KeyEvent& event) {
return;
}
- // Events which don't specify whether the key is pressed are invalid.
- if (!event.has_pressed())
- return;
-
int keycode = kInvalidKeycode;
if (event.has_usb_keycode()) {
keycode = UsbKeycodeToNativeKeycode(event.usb_keycode());
« no previous file with comments | « no previous file | remoting/host/event_executor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698