diff options
-rw-r--r-- | program/js/app.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index beb054bf2..0f76da01e 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4333,9 +4333,7 @@ function rcube_webmail() this.ksearch_input.value = pre + insert + end; // set caret to insert pos - cpos = p+insert.length; - if (this.ksearch_input.setSelectionRange) - this.ksearch_input.setSelectionRange(cpos, cpos); + this.set_caret_pos(this.ksearch_input, p + insert.length); if (trigger) { this.triggerEvent('autocomplete_insert', { field:this.ksearch_input, insert:insert }); |