summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/bookmark_manager/main.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/resources/bookmark_manager/main.html b/chrome/browser/resources/bookmark_manager/main.html
index 1da1116..2d409c9 100644
--- a/chrome/browser/resources/bookmark_manager/main.html
+++ b/chrome/browser/resources/bookmark_manager/main.html
@@ -286,7 +286,10 @@ function setSearch(searchText) {
bmm.treeLookup[searchTreeItem.bookmarkId] = searchTreeItem;
}
- $('term').value = searchText;
+ var input = $('term');
+ // Do not update the input if the user is actively using the text input.
+ if (document.activeElement != input)
+ input.value = searchText;
if (searchText) {
tree.add(searchTreeItem);