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 3439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3450 return; | 3450 return; |
3451 if (!page->tabKeyCyclesThroughElements()) | 3451 if (!page->tabKeyCyclesThroughElements()) |
3452 return; | 3452 return; |
3453 | 3453 |
3454 FocusDirection focusDirection = event->shiftKey() ? FocusDirectionBackward : FocusDirectionForward; | 3454 FocusDirection focusDirection = event->shiftKey() ? FocusDirectionBackward : FocusDirectionForward; |
3455 | 3455 |
3456 // Tabs can be used in design mode editing. | 3456 // Tabs can be used in design mode editing. |
3457 if (m_frame->document()->inDesignMode()) | 3457 if (m_frame->document()->inDesignMode()) |
3458 return; | 3458 return; |
3459 | 3459 |
3460 if (page->focusController()->handleCSSFocusNavigation(focusDirection)) | |
3461 return; | |
esprehn
2013/06/20 19:45:10
Hmm, why doesn't this need to do setDefaultHandled
Krzysztof Olczyk
2013/07/22 14:14:16
Just an omission. Done.
| |
3462 | |
3460 if (page->focusController()->advanceFocus(focusDirection, event)) | 3463 if (page->focusController()->advanceFocus(focusDirection, event)) |
3461 event->setDefaultHandled(); | 3464 event->setDefaultHandled(); |
3462 } | 3465 } |
3463 | 3466 |
3464 void EventHandler::capsLockStateMayHaveChanged() | 3467 void EventHandler::capsLockStateMayHaveChanged() |
3465 { | 3468 { |
3466 Document* d = m_frame->document(); | 3469 Document* d = m_frame->document(); |
3467 if (Node* node = d->focusedNode()) { | 3470 if (Node* node = d->focusedNode()) { |
3468 if (RenderObject* r = node->renderer()) { | 3471 if (RenderObject* r = node->renderer()) { |
3469 if (r->isTextField()) | 3472 if (r->isTextField()) |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3860 unsigned EventHandler::accessKeyModifiers() | 3863 unsigned EventHandler::accessKeyModifiers() |
3861 { | 3864 { |
3862 #if OS(DARWIN) | 3865 #if OS(DARWIN) |
3863 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3866 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3864 #else | 3867 #else |
3865 return PlatformEvent::AltKey; | 3868 return PlatformEvent::AltKey; |
3866 #endif | 3869 #endif |
3867 } | 3870 } |
3868 | 3871 |
3869 } // namespace WebCore | 3872 } // namespace WebCore |
OLD | NEW |