| Index: views/events/event_win.cc
|
| diff --git a/views/events/event_win.cc b/views/events/event_win.cc
|
| index 11f63ec3e2affa91ec125e6a85fd27527d598674..ad19185c11459321cb253fbdc60f6d50b8610e94 100644
|
| --- a/views/events/event_win.cc
|
| +++ b/views/events/event_win.cc
|
| @@ -217,6 +217,17 @@ KeyEvent::KeyEvent(NativeEvent2 native_event_2, FromNativeEvent2 from_native)
|
| NOTREACHED();
|
| }
|
|
|
| +uint16 KeyEvent::GetCharacter() const {
|
| + return (native_event().message == WM_CHAR) ? key_code_ :
|
| + GetCharacterFromKeyCode(key_code_, flags());
|
| +}
|
| +
|
| +uint16 KeyEvent::GetUnmodifiedCharacter() const {
|
| + // Looks like there is no way to get unmodified character on Windows.
|
| + return (native_event().message == WM_CHAR) ? key_code_ :
|
| + GetCharacterFromKeyCode(key_code_, flags() & ui::EF_SHIFT_DOWN);
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // MouseEvent, public:
|
|
|
|
|