[Title] Fix focus ui navigation bug
[Issue#] N_SE-51901
[Problem] Focus ui has minor navigation bugs
[Cause] Do not considered navigation by keyboard.
[Solution] Fix invalid code.
Change-Id: I102f662ef79fb059ed60f3cf27853ef05b4afc6d
{
// FIXME: This function needs a better name. It can be called for keypresses other than Tab when spatial navigation is enabled.
+#if ENABLE(TIZEN_FOCUS_UI)
+ return isSpatialNavigationEnabled(m_frame);
+#endif
+
Page* page = m_frame->page();
if (!page)
return false;
document->setFocusedNode(0);
setFocusedFrame(0);
m_page->chrome()->takeFocus(direction);
+#if ENABLE(TIZEN_FOCUS_UI)
+ frame->selection()->clear();
+#endif
return true;
}
if (m_focusedNode && m_focusedNode->renderer())
m_focusedNode->renderer()->repaint();
- if (!enabled)
+ if (enabled) {
+ Frame* frame = m_page->focusController()->focusedOrMainFrame();
+ if (frame) {
+ PlatformMouseEvent fakeMouseMove(IntPoint(-1, -1), IntPoint(-1, -1), NoButton, PlatformEvent::MouseMoved, 0, false, false, false, false, currentTime());
+ frame->eventHandler()->mouseMoved(fakeMouseMove);
+ }
+ } else
setFocusedNode(0);
}
#endif