X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-ui-debug.js;h=7184449a54d17d6f865753b2a492df7959121bc1;hp=8aa7439b1bace0c03e6ad38cdd801a73464d4198;hb=fc32d3336ffe6a4ac93549dab21fd04b7d7056d3;hpb=700d6c83a34e097e8438094422f5a1da03db160b diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 8aa7439b1b..7184449a54 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -23319,7 +23319,17 @@ Roo.htmleditor.KeyEnter.prototype = { var pc = range.closest([ 'ol', 'ul']); var pli = range.closest('li'); if (!pc || e.ctrlKey) { - sel.insertNode('br', 'after'); + // on it list, or ctrl pressed. + if (!e.ctrlKey) { + sel.insertNode('br', 'after'); + } else { + // only do this if we have ctrl key.. + var br = doc.createElement('br'); + br.className = 'clear'; + br.setAttribute('style', 'clear:all'); + sel.insertNode(br, 'after'); + } + this.core.undoManager.addEvent(); this.core.fireEditorEvent(e);