wlxml: Document's root is always a context root
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / keyboard.js
index 3a90a90..6b32da0 100644 (file)
@@ -282,7 +282,7 @@ var keyEventHandlers = [
         },
         run: function(e,s) {
             e.preventDefault();
         },
         run: function(e,s) {
             e.preventDefault();
-            e.element.wlxmlNode.setText('');
+            s.element.wlxmlNode.setText('');
             s.canvas.setCurrentElement(s.element, {caretTo: 0});
         }
     },
             s.canvas.setCurrentElement(s.element, {caretTo: 0});
         }
     },