From 13be74ac214d6a44cccb585db5ab41db767480b9 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 3 Mar 2015 09:42:38 +0200 Subject: client/text_analyser_input: fix cursor position move on enter --- src/client/view/textanalyser_input.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); -- cgit v1.3.1