mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(undo): Don't create separate commands, since they bubble separately
This commit is contained in:
parent
444101a74b
commit
e9a898c869
3 changed files with 3 additions and 5 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue