[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) <dmo@odoo.com>
This commit is contained in:
vishal padhiyar
2023-07-15 04:01:06 +02:00
parent 495546de79
commit c1d42a42a1
@@ -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