diff options
Diffstat (limited to 'tools/template/views/stat.js')
-rw-r--r-- | tools/template/views/stat.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/template/views/stat.js b/tools/template/views/stat.js index 2db02847eb6..a327503e8c9 100644 --- a/tools/template/views/stat.js +++ b/tools/template/views/stat.js @@ -17,8 +17,14 @@ var StatView = module.exports = AmpersandView.extend({ no: 'fa-circle-o' } }, - clicked: function () { - this.model.toggle('selected'); - this.parent.parent.statChanged(this); + clicked: function (event) { + // ignore shift+click, app handles those + if (event.shiftKey) { + this.model.app.toggleAllExcept(this.model); + } else { + this.model.app.clearSelectionState(); + this.model.toggle('selected'); + } + this.parent.parent.statChanged(this, {all: event.shiftKey, propagate: true}); } }); |