Skip to content

Commit

Permalink
Merge pull request #37 from EWhite613/master
Browse files Browse the repository at this point in the history
Clear selection when shift click
  • Loading branch information
sglanzer committed Jun 16, 2016
2 parents b436b7f + 1de34a1 commit 66cddd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addon/pods/components/frost-list-item/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export default Ember.Component.extend({
secondClickedRecord: this.get('model'),
isTargetSelectionIndicator: isTargetSelectionIndicator
})
if (window.getSelection) {
window.getSelection().removeAllRanges()
} else if (document.selection) { // IE
document.selection.empty()
}
} else {
this.get('_frostList.onSelect')({
record: this.get('model'),
Expand Down

0 comments on commit 66cddd0

Please sign in to comment.