diff options
author | Aleksander Machniak <alec@alec.pl> | 2018-06-14 13:38:25 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2018-06-14 13:38:25 +0300 |
commit | 006fed33d3365fd0342a930b12707717c203efd5 (patch) | |
tree | e4e9bae555a0f4f9a0e22b19591a45adb69c8b3a /program | |
parent | 00acb4641119e5c56b03c75ac62657f6acadb04b (diff) |
Elastic: Completed TinyMCE styling
Diffstat (limited to 'program')
-rw-r--r-- | program/js/editor.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/program/js/editor.js b/program/js/editor.js index a0e220bf3..68be4ac97 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -700,13 +700,17 @@ function rcube_text_editor(config, id) }); button.keydown(function(e) { - if (e.which == 9) { + if (e.which == 9) { // Tab if (rcube_event.get_modifier(e) == SHIFT_KEY || !list.find('li:first').focus().length) { cancel.focus(); } return false; } + + if (e.which == 13) { // Enter + this.click(); + } }); cancel.keydown(function(e) { |