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

Unified Diff: remoting/host/event_executor_linux.cc

Issue 5559011: Remove ChromotingClientMessage (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 10 years 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
Index: remoting/host/event_executor_linux.cc
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index 5096fac01583d754ae95b5a1efcd09f5bd3b2711..add03fc09eb298af34f0f343a639c977a49c7381 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -292,10 +292,10 @@ bool EventExecutorLinuxPimpl::Init() {
void EventExecutorLinuxPimpl::HandleKey(const KeyEvent* key_event) {
// TODO(ajwong): This will only work for QWERTY keyboards.
- int keysym = ChromotocolKeycodeToX11Keysym(key_event->key());
+ int keysym = ChromotocolKeycodeToX11Keysym(key_event->keycode());
if (keysym == -1) {
- LOG(WARNING) << "Ignoring unknown key: " << key_event->key();
+ LOG(WARNING) << "Ignoring unknown key: " << key_event->keycode();
return;
}
@@ -303,11 +303,11 @@ void EventExecutorLinuxPimpl::HandleKey(const KeyEvent* key_event) {
int keycode = XKeysymToKeycode(display_, keysym);
if (keycode == 0) {
LOG(WARNING) << "Ignoring undefined keysym: " << keysym
- << " for key: " << key_event->key();
+ << " for key: " << key_event->keycode();
return;
}
- VLOG(3) << "Got pepper key: " << key_event->key()
+ VLOG(3) << "Got pepper key: " << key_event->keycode()
<< " sending keysym: " << keysym
<< " to keycode: " << keycode;
XTestFakeKeyEvent(display_, keycode, key_event->pressed(), CurrentTime);

Powered by Google App Engine
This is Rietveld 408576698