Hiding selection handles in no enough in order
to exit selection mode upon BACK HW button.
On renderer side, selection will still be active, and
the selection highlight will be still drawn.
Patch fixes this by requesting a "unselecting" text
on the renderer side.
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=15083
Reviewed by: a.renevier, djmix.kim
Change-Id: I430c9338f9895ee90a2ce8dc117b170af6c93221
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
if (webview_->GetContextMenuController()) {
DVLOG(1) << "Hiding context menu due to back key press";
webview_->ResetContextMenuController();
- if (SelectionControllerEfl* selection_controller = webview_->GetSelectionController())
- selection_controller->HideHandles();
handled = true;
}
if (webview_->GetSelectionController()->IsAnyHandleVisible()) {
DVLOG(1) << "Clearing text selection due to back key press";
- webview_->GetSelectionController()->ClearSelection();
+ webview_->GetSelectionController()->ClearSelectionViaEWebView();
handled = true;
}
}