remove undo/redo override, fixed in 0.22
This commit is contained in:
parent
af2eb78e2b
commit
2448ed918a
@ -37,17 +37,6 @@ function onKeyDown(e, data, change) {
|
||||
}
|
||||
|
||||
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 = {
|
||||
b: 'bold',
|
||||
i: 'italic',
|
||||
|
Loading…
x
Reference in New Issue
Block a user