diff options
Diffstat (limited to 'views/widget/widget_win.cc')
-rw-r--r-- | views/widget/widget_win.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc index d975ef9..3017e05 100644 --- a/views/widget/widget_win.cc +++ b/views/widget/widget_win.cc @@ -571,12 +571,14 @@ void WidgetWin::OnInitMenuPopup(HMENU menu, } void WidgetWin::OnKeyDown(TCHAR c, UINT rep_cnt, UINT flags) { - KeyEvent event(Event::ET_KEY_PRESSED, c, rep_cnt, flags); + KeyEvent event(Event::ET_KEY_PRESSED, + win_util::WinToKeyboardCode(c), rep_cnt, flags); 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); + KeyEvent event(Event::ET_KEY_RELEASED, + win_util::WinToKeyboardCode(c), rep_cnt, flags); SetMsgHandled(root_view_->ProcessKeyEvent(event)); } |