From c1d42a42a10e59d8dbe012b950595234fa13071d Mon Sep 17 00:00:00 2001 From: vishal padhiyar Date: Tue, 6 Jun 2023 06:53:06 +0000 Subject: [PATCH] [FIX] web_editor: link with / not recognized Before this commit: When user try to create link with / it is not recognized as a link. After this commit: Now when user try to create link with / it is recognized as a link. Task-3347775 closes odoo/odoo#127842 X-original-commit: e99ccfa1ed7aa338f99c4142d109b2860cc9be4a Signed-off-by: David Monjoie (dmo) --- .../static/src/js/editor/odoo-editor/src/OdooEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js index 4c559ed3cf0..90739d5f81c 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js @@ -3692,7 +3692,7 @@ export class OdooEditor extends EventTarget { ev.preventDefault(); this._handleAutomaticLinkInsertion(); this._applyCommand('oShiftEnter'); - } else if (ev.key === ' ' && !this.powerbox.isOpen) { + } else if (ev.key === ' ') { this._handleAutomaticLinkInsertion(); } else if (IS_KEYBOARD_EVENT_UNDO(ev)) { // Ctrl-Z