fix event.path by using event.currentTarget

This commit is contained in:
Kevin Jahns
2017-11-08 17:31:12 -08:00
parent a08624c04e
commit 4f55e8c655
5 changed files with 67 additions and 27 deletions

View File

@@ -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) {