Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
redo(n = 1) {
for (let i = 0; i < n; i += 1) {
redo(this.state, tr => this.apply(tr));
}
return this;
}
"Mod-y": () => redo(this.outerView.state, this.outerView.dispatch)
})]
doRedo(e: CustomEvent) {
e.stopPropagation()
e.preventDefault()
if (this.editorView) {
redo(this.editorView.state, this.editorView.dispatch)
this.editorView.focus()
}
}
[`Shift-${mod}-Z`]: () => redo(view.state, view.dispatch),
[`${mod}-Y`]: () => redo(view.state, view.dispatch),
execute = (
state: EditorState,
dispatch: ?(tr: Transform) => void,
view: ?EditorView
): boolean => {
return redo(state, dispatch);
};
}
"Mod-Shift-z": (state, dispatch) => redo(state, dispatch),
"Mod-z": (state, dispatch) => undo(state, dispatch)
enable: state => redo(state),
icon: icons.redo
[`${mod}-Y`]: () => redo(view.state, view.dispatch),
"Ctrl-Enter": () => {
select: state => redo(state),
icon: ""
redo = () => {
const { pmstate } = this.props;
const { state, dispatch } = pmstate.pmview;
redo(state, dispatch);
};