mirror of
https://github.com/yjs/yjs.git
synced 2025-12-23 06:59:24 +01:00
fix event.path by using event.currentTarget
This commit is contained in:
@@ -16,7 +16,9 @@ window.onload = function () {
|
||||
// Bind children of XmlFragment to the document.body
|
||||
window.yXmlType.bindToDom(document.body)
|
||||
}
|
||||
window.undoManager = new Y.utils.UndoManager(window.yXmlType)
|
||||
window.undoManager = new Y.utils.UndoManager(window.yXmlType, {
|
||||
captureTimeout: 1000
|
||||
})
|
||||
|
||||
document.onkeydown = function interceptUndoRedo (e) {
|
||||
if (e.keyCode === 90 && e.ctrlKey) {
|
||||
|
||||
Reference in New Issue
Block a user