@ -27,6 +27,10 @@ class BoostModal extends ImmutablePureComponent {
intl:PropTypes.object.isRequired,
};
componentDidMount(){
this.button.focus();
}
handleReblog=()=>{
this.props.onReblog(this.props.status);
this.props.onClose();
@ -40,6 +44,10 @@ class BoostModal extends ImmutablePureComponent {
}
}
setRef=(c)=>{
this.button=c;
}
render(){
const{status,intl,onClose}=this.props;
@ -67,7 +75,7 @@ class BoostModal extends ImmutablePureComponent {
<divclassName='boost-modal__action-bar'>
<div><FormattedMessageid='boost_modal.combo'defaultMessage='You can press {combo} to skip this next time'values={{combo:<span>Shift+<iclassName='fa fa-retweet'/></span> }} /></div>