Chromium Code Reviews| Index: chrome/browser/resources/md_history/history_item.js |
| diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js |
| index 3ece41158a275254a9ce1c6082bfbcd9587f5850..c330a42fcb85b36c76a5b1c5ca085dd66228021b 100644 |
| --- a/chrome/browser/resources/md_history/history_item.js |
| +++ b/chrome/browser/resources/md_history/history_item.js |
| @@ -37,14 +37,26 @@ cr.define('md_history', function() { |
| /** |
| * When a history-item is selected the toolbar is notified and increases |
| * or decreases its count of selected items accordingly. |
| + * @param {MouseEvent} e |
| * @private |
| */ |
| - onCheckboxSelected_: function() { |
| + onCheckboxSelected_: function(e) { |
| // TODO(calamity): Fire this event whenever |selected| changes. |
| this.fire('history-checkbox-select', { |
| element: this, |
| - countAddition: this.$.checkbox.checked ? 1 : -1 |
| + shiftKey: e.shiftKey, |
| }); |
| + e.preventDefault(); |
| + }, |
| + |
| + /* |
|
tsergeant
2016/08/16 01:26:00
/** to fix closure
|
| + * @param {MouseEvent} e |
| + * @private |
| + */ |
| + onCheckboxMousedown_: function(e) { |
| + // Prevent shift clicking a checkbox from selecting text. |
| + if (e.shiftKey) |
| + e.preventDefault(); |
| }, |
| /** |