| Index: ui/aura/root_window_host_x11.cc
|
| diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc
|
| index bba9279614bd06c56cea3007790339a758955f48..e2cbbd131b240a28541215f46e97fa9f7a8a01a9 100644
|
| --- a/ui/aura/root_window_host_x11.cc
|
| +++ b/ui/aura/root_window_host_x11.cc
|
| @@ -126,46 +126,6 @@ void SelectEventsForRootWindow() {
|
| #endif
|
| }
|
|
|
| -// We emulate Windows' WM_KEYDOWN and WM_CHAR messages. WM_CHAR events are only
|
| -// generated for certain keys; see
|
| -// http://msdn.microsoft.com/en-us/library/windows/desktop/ms646268.aspx. Per
|
| -// discussion on http://crbug.com/108480, char events should furthermore not be
|
| -// generated for Tab, Escape, and Backspace.
|
| -bool ShouldSendCharEventForKeyboardCode(ui::KeyboardCode keycode) {
|
| - if ((keycode >= ui::VKEY_0 && keycode <= ui::VKEY_9) ||
|
| - (keycode >= ui::VKEY_A && keycode <= ui::VKEY_Z) ||
|
| - (keycode >= ui::VKEY_NUMPAD0 && keycode <= ui::VKEY_NUMPAD9)) {
|
| - return true;
|
| - }
|
| -
|
| - switch (keycode) {
|
| - case ui::VKEY_RETURN:
|
| - case ui::VKEY_SPACE:
|
| - // In addition to the keys listed at MSDN, we include other
|
| - // graphic-character and numpad keys.
|
| - case ui::VKEY_MULTIPLY:
|
| - case ui::VKEY_ADD:
|
| - case ui::VKEY_SUBTRACT:
|
| - case ui::VKEY_DECIMAL:
|
| - case ui::VKEY_DIVIDE:
|
| - case ui::VKEY_OEM_1:
|
| - case ui::VKEY_OEM_2:
|
| - case ui::VKEY_OEM_3:
|
| - case ui::VKEY_OEM_4:
|
| - case ui::VKEY_OEM_5:
|
| - case ui::VKEY_OEM_6:
|
| - case ui::VKEY_OEM_7:
|
| - case ui::VKEY_OEM_102:
|
| - case ui::VKEY_OEM_PLUS:
|
| - case ui::VKEY_OEM_COMMA:
|
| - case ui::VKEY_OEM_MINUS:
|
| - case ui::VKEY_OEM_PERIOD:
|
| - return true;
|
| - default:
|
| - return false;
|
| - }
|
| -}
|
| -
|
| bool default_override_redirect = false;
|
|
|
| } // namespace
|
|
|