summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-03 09:42:38 +0200
committerAlon Levy <alon@pobox.com>2015-03-03 09:45:54 +0200
commit13be74ac214d6a44cccb585db5ab41db767480b9 (patch)
tree043d6c736e2e345a6b2e2ed510eaa9e9c2ab837d /src
parentac1819baf2445c8ab350922f14d6ee15f1028ef5 (diff)
client/text_analyser_input: fix cursor position move on enter
Diffstat (limited to 'src')
-rw-r--r--src/client/view/textanalyser_input.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/view/textanalyser_input.js b/src/client/view/textanalyser_input.js
index 43fb6609..be7532f2 100644
--- a/src/client/view/textanalyser_input.js
+++ b/src/client/view/textanalyser_input.js
@@ -87,6 +87,8 @@ function textanalyser_input(spec) {
var enters = element.asEventStream('keydown').filter(key(13))
.map(function (e) {
var text;
+ e.preventDefault();
+ e.stopPropagation();
if (!analysisCompleter.handleEnter()) {
text = current_value();