Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index a9031ea4fc53df5498a3fb8b91c1f33420978c91..fc2936550b8ff070ec4f67966477bb064ad0714e 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -2,6 +2,7 @@ |
* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
* Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
* Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
+ * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -3409,6 +3410,11 @@ void EventHandler::defaultArrowEventHandler(FocusType focusType, KeyboardEvent* |
if (m_frame->document()->inDesignMode()) |
return; |
+ if (page->focusController().handleCSSFocusNavigation(focusType)) { |
+ event->setDefaultHandled(); |
+ return; |
+ } |
+ |
if (page->focusController().advanceFocus(focusType)) |
event->setDefaultHandled(); |
} |