Index: chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js |
=================================================================== |
--- chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js (revision 143397) |
+++ chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js (working copy) |
@@ -129,9 +129,10 @@ |
// On Mac we always clear the selection if the user clicks a blank area. |
// On Windows, we only clear the selection if neither Shift nor Ctrl are |
// pressed. |
- if (cr.isMac || cr.isChromeOS) { |
+ if (cr.isMac) { |
sm.leadIndex = sm.anchorIndex = -1; |
- sm.unselectAll(); |
+ if (sm.multiple) |
+ sm.unselectAll(); |
} else if (!isDown && !e.shiftKey && !e.ctrlKey) |
// Keep anchor and lead indexes. Note that this is intentionally |
// different than on the Mac. |
@@ -263,7 +264,7 @@ |
} else { |
sm.selectRange(anchorIndex, newIndex); |
} |
- } else if (e.ctrlKey && !cr.isMac && !cr.isChromeOS) { |
+ } else if (e.ctrlKey && !cr.isMac) { |
// Setting the lead index is done above. |
// Mac does not allow you to change the lead. |
} else { |