Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(849)

Unified Diff: sky/engine/core/page/EventHandler.cpp

Issue 871683002: Remove a number of unused features from WebViewImpl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/engine/core/page/Page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/page/EventHandler.cpp
diff --git a/sky/engine/core/page/EventHandler.cpp b/sky/engine/core/page/EventHandler.cpp
index 9e2d8e7db2502e26cd460dcb26eb79b192714fea..940110a6410c2381f106459d37dc9733337800d6 100644
--- a/sky/engine/core/page/EventHandler.cpp
+++ b/sky/engine/core/page/EventHandler.cpp
@@ -2193,22 +2193,6 @@ void EventHandler::defaultTextInputEventHandler(TextEvent* event)
void EventHandler::defaultTabEventHandler(KeyboardEvent* event)
{
- ASSERT(event->type() == EventTypeNames::keydown);
-
- // We should only advance focus on tabs if no special modifier keys are held down.
- if (event->ctrlKey() || event->metaKey())
- return;
-
- Page* page = m_frame->page();
- if (!page)
- return;
- if (!page->tabKeyCyclesThroughElements())
- return;
-
- FocusType focusType = event->shiftKey() ? FocusTypeBackward : FocusTypeForward;
-
- if (page->focusController().advanceFocus(focusType))
- event->setDefaultHandled();
}
void EventHandler::capsLockStateMayHaveChanged()
« no previous file with comments | « no previous file | sky/engine/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698