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

Unified Diff: chrome/browser/resources/history/history.js

Issue 917183004: history: fix focus row highlighting bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: chrome/browser/resources/history/history.js
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index 24a67360b9eacea7fd8f02f1dab545c3d591c04a..87f775ead337c9245ca874c8414dfde701003327 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -287,8 +287,10 @@ Visit.prototype.getResultDOM = function(propertyBag) {
// Support clicking anywhere inside the entry box.
entryBox.addEventListener('click', function(e) {
- if (!e.defaultPrevented)
+ if (!e.defaultPrevented) {
+ self.titleLink.focus();
self.titleLink.click();
+ }
});
} else {
var dropDown = createElementWithClassName('button', 'drop-down');
« 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