rem: ResetStructToolbar(); 
add: window.content.focus(); 
context: function OnKeyPress(event){  var editor = GetCurrentEditor();  var keyCode = event.keyCode;  if (keyCode == 13) {    var newTag = event.target.value;    var element = gContextMenuFiringDocumentElement;    var offset = 0;    var childNodes = element.parentNode.childNodes;    while (childNodes.item(offset) != element) {      offset++;    }    editor.beginTransaction();    try {      var newElt = editor.document.createElement(newTag);      if (newElt) {        childNodes = element.childNodes;        var childNodesLength = childNodes.length;        var i;        for (i = 0; i < childNodesLength; i++) {          var clone = childNodes.item(i).cloneNode(true);          newElt.appendChild(clone);        }        editor.insertNode(newElt, element.parentNode, offset+1);        editor.deleteNode(element);        editor.selectElement(newElt);        window._content.focus();        ResetStructToolbar();      }    }    catch (e) {}    editor.endTransaction();  }  else if (keyCode == 27) {    // if the user hits Escape, we discard the changes    ResetStructToolbar();  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/159b81a09d4d37bbd2cbfdf0da0f8fc2abfbe50f/StructBarContextMenu.js/buggy/editor/ui/composer/content/StructBarContextMenu.js