diff options
Diffstat (limited to 'ui/aura/root_window_host_x11.cc')
-rw-r--r-- | ui/aura/root_window_host_x11.cc | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc index af20138..ec724ac 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 |