From 7303e0fb6b1a12625e6111da3b4e89f5de2ec528 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 11 May 2022 16:31:25 +0800 Subject: [PATCH] try and get ctrl-enter to add a clear all --- docs/src/Roo_htmleditor_KeyEnter.js.html | 3 ++- roojs-bootstrap-debug.js | 3 ++- roojs-bootstrap.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/src/Roo_htmleditor_KeyEnter.js.html b/docs/src/Roo_htmleditor_KeyEnter.js.html index 22c2472547..3a8909ebe5 100644 --- a/docs/src/Roo_htmleditor_KeyEnter.js.html +++ b/docs/src/Roo_htmleditor_KeyEnter.js.html @@ -45,9 +45,10 @@ var pli = range.closest('li'); if (!pc || e.ctrlKey) { // on it list, or ctrl pressed. - if (pc) { + 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'); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index c66b946610..24d9856cc2 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -26931,9 +26931,10 @@ Roo.htmleditor.KeyEnter.prototype = { var pli = range.closest('li'); if (!pc || e.ctrlKey) { // on it list, or ctrl pressed. - if (pc) { + 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'); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 9021048465..b10f834caa 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1167,7 +1167,7 @@ Roo.htmleditor.FilterBlock=function(A){Roo.apply(this,A);var qa=A.node.querySele for(var i=0;i