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

Unified Diff: content/browser/renderer_host/input/touch_selection_controller.cc

Issue 486763004: Fixed the issue of insertion handle not clearing on single tap on empty field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/touch_selection_controller.cc
diff --git a/content/browser/renderer_host/input/touch_selection_controller.cc b/content/browser/renderer_host/input/touch_selection_controller.cc
index d5380487e255bb339823fe0b39f112633f0d2ce6..1ec83f92ff80c7640fe6650aa024f3a29c9c2987 100644
--- a/content/browser/renderer_host/input/touch_selection_controller.cc
+++ b/content/browser/renderer_host/input/touch_selection_controller.cc
@@ -140,6 +140,9 @@ void TouchSelectionController::OnTapEvent() {
activate_selection_automatically_ = false;
DeactivateSelection();
ShowInsertionHandleAutomatically();
+ if (selection_empty_) {
+ DeactivateInsertion();
jdduke (slow) 2014/08/18 17:08:33 Nit: No need for braces. Also, please add a unit t
AKVT 2014/08/18 18:18:21 Done. Thanks
+ }
ResetCachedValuesIfInactive();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698