X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/dca8878022514685dba90359231cdfb872cab1cb..2e3d776b68a0b47d83b3cec86763a9625a43fae2:/src/editor/modules/documentCanvas/canvas/keyboard.js?ds=sidebyside diff --git a/src/editor/modules/documentCanvas/canvas/keyboard.js b/src/editor/modules/documentCanvas/canvas/keyboard.js index 3a90a90..6b32da0 100644 --- a/src/editor/modules/documentCanvas/canvas/keyboard.js +++ b/src/editor/modules/documentCanvas/canvas/keyboard.js @@ -282,7 +282,7 @@ var keyEventHandlers = [ }, run: function(e,s) { e.preventDefault(); - e.element.wlxmlNode.setText(''); + s.element.wlxmlNode.setText(''); s.canvas.setCurrentElement(s.element, {caretTo: 0}); } },