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

Unified Diff: chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js

Issue 9429003: Accurate selection change event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | chrome/browser/resources/shared/js/cr/ui/list_selection_model.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js
diff --git a/chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js b/chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js
index 35101d1e715e5f83a4d76f1d5dd6a39582e45a85..a86b84b09f805d11f6a149dde46a94b8d69a4ea2 100644
--- a/chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js
+++ b/chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js
@@ -164,10 +164,7 @@ cr.define('cr.ui', function() {
var indexSelected = sm.getIndexSelected(index);
if ((indexSelected && !isDown || !indexSelected && isDown) &&
!(indexSelected && isRightClick)) {
- sm.unselectAll();
- sm.setIndexSelected(index, true);
- sm.leadIndex = index;
- sm.anchorIndex = index;
+ sm.selectedIndex = index;
}
}
}
« no previous file with comments | « no previous file | chrome/browser/resources/shared/js/cr/ui/list_selection_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698