summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2021-02-18 09:04:42 +0000
committerNicolas Lempereur <nle@odoo.com>2021-02-18 11:01:31 +0000
commit8fdd4c503aa7396ed0b1789d74d2a794d61b2508 (patch)
tree48cce517d775b9790e79d2fbf1d279edeba5992e /addons/web_editor/static/src/js/editor
parent6001e7584c28f8d028c782692caa644015c33e9c (diff)
[FIX] web_editor: shift+enter in editor add direct newline
Enter keypress browser event were removed in 3c372d1da8b. It was reintroduced in text fields with d2f024d2543 and in source mode of html field with b10ca1f6094b. When doing ENTER in the editor, we do our special case of ENTER (eg. it will split the container in two and have other custom behavior) but when doing SHIFT+ENTER we let the browser handle it and add a normal newline. With the "Enter" prevention, SHIFT+ENTER did not work. opw-2463746 closes odoo/odoo#66442 X-original-commit: 27b84138b422f0dbb3e01c83bb817d0880e3eab3 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js/editor')
0 files changed, 0 insertions, 0 deletions