diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2018-11-15 16:48:12 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2018-11-15 16:52:31 +0100 |
| commit | 258eaa7a3ce7c25e93f1b9940351335bfcda2aeb (patch) | |
| tree | 058203417311a2001f244bc69b176767b01b6639 /addons/web_editor | |
| parent | 8a9569b31e503562c046722901dbc9c51e7b5118 (diff) | |
[FIX] web_editor: firefox `´ accent no break position
On firefox if we do for example:
ALT+GR + [ALT+GRable ´ key]
Firefox may send keys "AltGr" and "Dead" instead of just "AltGr".
This was possibly causing caret to go a position too low when writing
speedily with diacritical marks.
opw-1903865
closes #28739
Diffstat (limited to 'addons/web_editor')
| -rw-r--r-- | addons/web_editor/static/lib/summernote/src/js/EventHandler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/lib/summernote/src/js/EventHandler.js b/addons/web_editor/static/lib/summernote/src/js/EventHandler.js index 09a7b00082a..1cb9cd8e1c7 100644 --- a/addons/web_editor/static/lib/summernote/src/js/EventHandler.js +++ b/addons/web_editor/static/lib/summernote/src/js/EventHandler.js @@ -361,7 +361,7 @@ define([ (keycode > 185 && keycode < 193) || // ;=,-./` (in order) (keycode > 218 && keycode < 223))) { // [\]' (in order)) eventName = 'visible'; - } else if (!keycode) { + } else if (!keycode && event.key !== 'Dead') { self.invoke('restoreRange', $editable); } // ODOO: end_modification) |
