aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-20 18:16:15 -0700
committerredmatrix <git@macgirvin.com>2016-04-20 18:16:15 -0700
commit23180ae07895ba9bcdf7d598f3db4f227bd1fb24 (patch)
treeedcc6da51a743e64b98f20701609cf05367be86b /view/js/autocomplete.js
parent2641980ac2876bfe66bb24795dbea4d25483616d (diff)
parent635580091a227529cb491e6441a5acbfff3177be (diff)
downloadvolse-hubzilla-23180ae07895ba9bcdf7d598f3db4f227bd1fb24.tar.gz
volse-hubzilla-23180ae07895ba9bcdf7d598f3db4f227bd1fb24.tar.bz2
volse-hubzilla-23180ae07895ba9bcdf7d598f3db4f227bd1fb24.zip
Merge branch 'dev' into dmeta
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 59e3600b3..84cc075dc 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -147,6 +147,9 @@ function listNewLineAutocomplete(id) {
setCaretPosition(text, caretPos + 5);
return true;
}
+ else {
+ return false;
+ }
}
function string2bb(element) {
@@ -315,11 +318,12 @@ function string2bb(element) {
a.on('textComplete:select', function(e, value, strategy) { value; });
a.keypress(function(e){
- e.stopImmediatePropagation();
if (e.keyCode == 13) {
var x = listNewLineAutocomplete(this.id);
- if(x)
+ if(x) {
+ e.stopImmediatePropagation();
e.preventDefault();
+ }
}
});
};