summaryrefslogtreecommitdiffstats
path: root/chrome/views/widget_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/widget_win.cc')
-rw-r--r--chrome/views/widget_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/views/widget_win.cc b/chrome/views/widget_win.cc
index 47edf1b..fea61da 100644
--- a/chrome/views/widget_win.cc
+++ b/chrome/views/widget_win.cc
@@ -518,12 +518,12 @@ LRESULT WidgetWin::OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param) {
void WidgetWin::OnKeyDown(TCHAR c, UINT rep_cnt, UINT flags) {
KeyEvent event(Event::ET_KEY_PRESSED, c, rep_cnt, flags);
- root_view_->ProcessKeyEvent(event);
+ SetMsgHandled(root_view_->ProcessKeyEvent(event));
}
void WidgetWin::OnKeyUp(TCHAR c, UINT rep_cnt, UINT flags) {
KeyEvent event(Event::ET_KEY_RELEASED, c, rep_cnt, flags);
- root_view_->ProcessKeyEvent(event);
+ SetMsgHandled(root_view_->ProcessKeyEvent(event));
}
void WidgetWin::OnLButtonDown(UINT flags, const CPoint& point) {