aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--view/js/autocomplete.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index a4a1fdf51..59e3600b3 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -314,9 +314,10 @@ function string2bb(element) {
a.on('textComplete:select', function(e, value, strategy) { value; });
- $(this).keypress(function(e){
+ a.keypress(function(e){
+ e.stopImmediatePropagation();
if (e.keyCode == 13) {
- x = listNewLineAutocomplete(this.id);
+ var x = listNewLineAutocomplete(this.id);
if(x)
e.preventDefault();
}