e.preventDefault();
if (!this.props.disabled) {
- this.props.onClick();
+ this.props.onClick(e);
}
},
this.props.onFavourite(this.props.status);
},
- handleReblogClick () {
- this.props.onReblog(this.props.status);
+ handleReblogClick (e) {
+ this.props.onReblog(this.props.status, e);
},
handleDeleteClick () {
dispatch(reblog(status));
},
- onReblog (status) {
+ onReblog (status, e) {
if (status.get('reblogged')) {
dispatch(unreblog(status));
} else {
- dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog }));
+ if (e.altKey) {
+ this.onModalReblog(status);
+ } else {
+ dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog }));
+ }
}
},
this.props.onReply(this.props.status);
},
- handleReblogClick () {
- this.props.onReblog(this.props.status);
+ handleReblogClick (e) {
+ this.props.onReblog(this.props.status, e);
},
handleFavouriteClick () {
this.props.dispatch(reblog(status));
},
- handleReblogClick (status) {
+ handleReblogClick (status, e) {
if (status.get('reblogged')) {
this.props.dispatch(unreblog(status));
} else {
- this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog }));
+ if (e.altKey) {
+ this.handleModalReblog(status);
+ } else {
+ this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog }));
+ }
}
},