[FIX] web_editor: prevent editor powerbox hint duplication

Whenever the browser is lagging between multiple enter,
the command hints were not being updated until the browser
main thread process the event queue.

Task-2728794

closes odoo/odoo#82795

X-original-commit: bfed1edd26312488dc0f45e8982b51ea4d98db76
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Nicolas Bayet
2022-01-14 16:37:54 +00:00
parent 6367a89332
commit d3b328358f
@@ -1472,6 +1472,7 @@ export class OdooEditor extends EventTarget {
const result = this._protect(() => this._applyRawCommand(...args));
this.sanitize();
this.historyStep();
this._handleCommandHint();
return result;
}
/**