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

Unified Diff: ui/aura/desktop_host_linux.cc

Issue 8342026: Get basic KeyEvents working in RWHVA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « content/browser/renderer_host/web_input_event_aurax11.cc ('k') | ui/aura/desktop_host_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop_host_linux.cc
===================================================================
--- ui/aura/desktop_host_linux.cc (revision 106345)
+++ ui/aura/desktop_host_linux.cc (working copy)
@@ -185,10 +185,16 @@
desktop_->Draw();
handled = true;
break;
- case KeyPress:
+ case KeyPress: {
+ KeyEvent keydown_event(xev, false);
+ handled = desktop_->OnKeyEvent(keydown_event);
+ KeyEvent char_event(xev, true);
+ handled |= desktop_->OnKeyEvent(char_event);
+ break;
+ }
case KeyRelease: {
- KeyEvent keyev(xev);
- handled = desktop_->OnKeyEvent(keyev);
+ KeyEvent keyup_event(xev, false);
+ handled = desktop_->OnKeyEvent(keyup_event);
break;
}
case ButtonPress:
« no previous file with comments | « content/browser/renderer_host/web_input_event_aurax11.cc ('k') | ui/aura/desktop_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698