summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInBum Chang <ibchang@samsung.com>2012-09-03 17:39:34 +0900
committerGerrit Code Review <gerrit2@localhost>2012-09-03 17:39:34 +0900
commit7bba499346e01c4708af28285f10919efa3217dd (patch)
tree1a8a6715503f2552b1cd00b2da5c7a38f13f7e4f
parent708793a9b14b6ee17cb7024f61e8ba9cabff495b (diff)
parent5d4c6f3b03a053bf950f4e38a4850cb18b0a922e (diff)
downloadbrowser-7bba499346e01c4708af28285f10919efa3217dd.tar.gz
browser-7bba499346e01c4708af28285f10919efa3217dd.tar.bz2
browser-7bba499346e01c4708af28285f10919efa3217dd.zip
Merge "Fix an issue that share menu is not work if there was no selected text" into 2.0_beta
-rwxr-xr-xsrc/browser-view/browser-view.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/browser-view/browser-view.cpp b/src/browser-view/browser-view.cpp
index bb6c65b3..ac81d56f 100755
--- a/src/browser-view/browser-view.cpp
+++ b/src/browser-view/browser-view.cpp
@@ -1980,6 +1980,11 @@ void Browser_View::__url_editfield_share_clicked_cb(void *data, Evas_Object *obj
Browser_View *browser_view = (Browser_View *)data;
const char *selected_text = elm_entry_selection_get(br_elm_editfield_entry_get(browser_view->m_option_header_url_edit_field));
+ if (!selected_text || !strlen(selected_text)) {
+ BROWSER_LOGD("There is no selected_text. Share the URL");
+ selected_text = (const char *)browser_view->get_url().c_str();
+ }
+
if (browser_view->_show_share_popup(selected_text))
BROWSER_LOGE("_show_share_popup failed");
}
@@ -2644,6 +2649,8 @@ void Browser_View::__more_cb(void *data, Evas_Object *obj, void *event_info)
} else {
browser_view->_destroy_more_context_popup();
}
+ /* To give focus out signal to webkit(for destructing webkit context menu), give focus set in unvisible button */
+ elm_object_focus_set(browser_view->m_option_header_cancel_button, EINA_TRUE);
browser_view->_navigationbar_visible_set(EINA_TRUE);
}