fix(undo): Don't create separate commands, since they bubble separately

This commit is contained in:
Ben Gotow 2016-04-29 17:10:02 -07:00
parent 444101a74b
commit e9a898c869
3 changed files with 3 additions and 5 deletions

View file

@ -4,8 +4,6 @@
"composer:show-and-focus-bcc": "mod+shift+b",
"composer:show-and-focus-from": "mod+shift+f",
"composer:send-message": "mod+enter",
"composer:undo": "mod+z",
"composer:redo": "mod+y",
"composer:no-op": "delete",
"composer:delete-empty-draft": "escape"
}

View file

@ -108,8 +108,8 @@ export default class ComposerView extends React.Component {
'composer:show-and-focus-cc': () => this.refs.header.showAndFocusField(Fields.Cc),
'composer:focus-to': () => this.refs.header.showAndFocusField(Fields.To),
"composer:show-and-focus-from": () => {}, // todo
"composer:undo": this.undo,
"composer:redo": this.redo,
"core:undo": this.undo,
"core:redo": this.redo,
};
}

View file

@ -1,6 +1,6 @@
{
"core:undo": "mod+z",
"core:redo": "mod+y",
"core:redo": ["mod+shift+z", "mod+y"],
"core:cut": "mod+x",
"core:copy": "mod+c",
"core:paste": "mod+v",