mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 11:52:34 +08:00
fix(drafts): Support additional deletion shortcuts #939
This commit is contained in:
parent
c87680878a
commit
f77fc700d1
2 changed files with 7 additions and 3 deletions
|
@ -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) =>
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue