| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 3182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3193 Element* elem = m_frame->document()->getElementByAccessKey(key.lower()); | 3193 Element* elem = m_frame->document()->getElementByAccessKey(key.lower()); |
| 3194 if (!elem) | 3194 if (!elem) |
| 3195 return false; | 3195 return false; |
| 3196 elem->accessKeyAction(false); | 3196 elem->accessKeyAction(false); |
| 3197 return true; | 3197 return true; |
| 3198 } | 3198 } |
| 3199 | 3199 |
| 3200 WebInputEventResult EventHandler::keyEvent(const PlatformKeyboardEvent& initialK
eyEvent) | 3200 WebInputEventResult EventHandler::keyEvent(const PlatformKeyboardEvent& initialK
eyEvent) |
| 3201 { | 3201 { |
| 3202 RefPtrWillBeRawPtr<FrameView> protector(m_frame->view()); | 3202 RefPtrWillBeRawPtr<FrameView> protector(m_frame->view()); |
| 3203 m_frame->chromeClient().setToolTip(String(), LTR); | 3203 m_frame->chromeClient().clearToolTip(); |
| 3204 | 3204 |
| 3205 if (initialKeyEvent.windowsVirtualKeyCode() == VK_CAPITAL) | 3205 if (initialKeyEvent.windowsVirtualKeyCode() == VK_CAPITAL) |
| 3206 capsLockStateMayHaveChanged(); | 3206 capsLockStateMayHaveChanged(); |
| 3207 | 3207 |
| 3208 #if OS(WIN) | 3208 #if OS(WIN) |
| 3209 if (panScrollInProgress()) { | 3209 if (panScrollInProgress()) { |
| 3210 // If a key is pressed while the panScroll is in progress then we want t
o stop | 3210 // If a key is pressed while the panScroll is in progress then we want t
o stop |
| 3211 if (initialKeyEvent.type() == PlatformEvent::KeyDown || initialKeyEvent.
type() == PlatformEvent::RawKeyDown) | 3211 if (initialKeyEvent.type() == PlatformEvent::KeyDown || initialKeyEvent.
type() == PlatformEvent::RawKeyDown) |
| 3212 stopAutoscroll(); | 3212 stopAutoscroll(); |
| 3213 | 3213 |
| (...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4135 PlatformEvent::Modifiers EventHandler::accessKeyModifiers() | 4135 PlatformEvent::Modifiers EventHandler::accessKeyModifiers() |
| 4136 { | 4136 { |
| 4137 #if OS(MACOSX) | 4137 #if OS(MACOSX) |
| 4138 return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | Platfo
rmEvent::AltKey); | 4138 return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | Platfo
rmEvent::AltKey); |
| 4139 #else | 4139 #else |
| 4140 return PlatformEvent::AltKey; | 4140 return PlatformEvent::AltKey; |
| 4141 #endif | 4141 #endif |
| 4142 } | 4142 } |
| 4143 | 4143 |
| 4144 } // namespace blink | 4144 } // namespace blink |
| OLD | NEW |