If somehow there is no selection but the `_handleShortcuts` handler still gets called with `CTRL+A`, `container` would be a JQUERY object instead of an element leading to a crash in `selectNodeContents` which expects a `Node`. task-3506666 closes odoo/odoo#136499 X-original-commit: e6fac045282465960c0e4a7ecbbbb5e5ac8dff92 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com> Signed-off-by: Damien Abeloos (abd) <abd@odoo.com>