remove undo/redo override, fixed in 0.22

This commit is contained in:
Shawn Erquhart 2017-10-02 11:25:13 -04:00
parent af2eb78e2b
commit 2448ed918a

View File

@ -37,17 +37,6 @@ function onKeyDown(e, data, change) {
} }
if (data.isMod) { if (data.isMod) {
if (data.key === 'y') {
e.preventDefault();
return state.transform().redo().focus().apply({ save: false });
}
if (data.key === 'z') {
e.preventDefault();
return state.transform()[data.isShift ? 'redo' : 'undo']().focus().apply({ save: false });
}
const marks = { const marks = {
b: 'bold', b: 'bold',
i: 'italic', i: 'italic',