fix(drafts): Support additional deletion shortcuts #939

This commit is contained in:
Ben Gotow 2016-05-09 16:21:27 -07:00
parent c87680878a
commit f77fc700d1
2 changed files with 7 additions and 3 deletions

View file

@ -34,6 +34,8 @@ class DraftList extends React.Component
props
_keymapHandlers: =>
'core:delete-item': @_onRemoveFromView
'core:gmail-remove-from-view': @_onRemoveFromView
'core:remove-from-view': @_onRemoveFromView
_onDoubleClick: (draft) =>

View file

@ -231,7 +231,9 @@ class ThreadArrowButton extends React.Component {
command: React.PropTypes.string,
title: React.PropTypes.string,
}
constructor() {
constructor(props) {
super(props);
this.state = this.props.getStateFromStores();
}
@ -245,7 +247,7 @@ class ThreadArrowButton extends React.Component {
this._unsubscribe_focus();
}
_onClick() {
_onClick = () => {
if (this.state.disabled) {
return;
}
@ -253,7 +255,7 @@ class ThreadArrowButton extends React.Component {
return;
}
_onStoreChange() {
_onStoreChange = () => {
this.setState(this.props.getStateFromStores());
}