summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/textanalysis.js')
-rw-r--r--scripts/textanalysis.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index 3b97ee71..cde4c937 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -29,9 +29,16 @@ $("#textanalyser").keypress(function(e) {
}else{
suggestionChange=false;
}
-
+
return false;
}
+
+
+ if (e.which == 9) {//TAB
+ text = $('#textanalyser').val();
+ $('#textanalyser').val(text+" ");
+ return false;
+ }
});
$(document).keydown(function(e) {
@@ -51,11 +58,8 @@ $(document).keydown(function(e) {
if (e.keyCode == 40) {//DOWN
suggestionChange=true;
}
-
if (e.keyCode == 9) {//TAB
- text = $('#textanalyser').val();
- $('#textanalyser').val(text+" ");
return false;
}