summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 20:14:45 +0000
committerarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 20:14:45 +0000
commit031e43a8001ff1349fd34f07bca29c1be874c6ad (patch)
treeeea07f017d34b934ef14d9ad2fa4301e366f20a0 /chrome
parent91785fdc7aca450606b3a8eb0040b8060aaeafdb (diff)
downloadchromium_src-031e43a8001ff1349fd34f07bca29c1be874c6ad.zip
chromium_src-031e43a8001ff1349fd34f07bca29c1be874c6ad.tar.gz
chromium_src-031e43a8001ff1349fd34f07bca29c1be874c6ad.tar.bz2
Bookmark manager: Don't update the input text if the input is focused/
BUG=42953 TEST=Type in the search field. We should never get into a state where we drop characters or replace what the user is typing. Review URL: http://codereview.chromium.org/1912004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-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);