+void WebPageUI::lockWebview()
+{
+ BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
+ if(isWebPageUIvisible()) {
+ if(!isHomePageActive() && !isErrorPageActive()) {
+ elm_object_focus_custom_chain_unset(m_mainLayout);
+ elm_object_focus_custom_chain_append(m_mainLayout, elm_object_part_content_get(m_mainLayout, "web_view"), NULL);
+ m_webviewLocked = true;
+ }
+ }
+}
+
+void WebPageUI::onRedKeyPressed()
+{
+ BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
+ if(isWebPageUIvisible()) {
+ if(!isHomePageActive()) {
+ if(m_webviewLocked) {
+ refreshFocusChain();
+ m_URIEntry->setFocus();
+ m_webviewLocked = false;
+ }
+ }
+ }
+}
+