aboutsummaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-11-10 21:31:40 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-11-11 16:16:01 +0900
commit6db245892944b9e0a6a4f82b6e63453c880e3686 (patch)
treead15a74f1bfa347d18b44023c35ba486495c8bcd /src/console
parente021504356016dc4cdb89356cae542c31486fe6a (diff)
prevent
Diffstat (limited to 'src/console')
-rw-r--r--src/console/components/console.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/console/components/console.js b/src/console/components/console.js
index e83a1c9..38e32d7 100644
--- a/src/console/components/console.js
+++ b/src/console/components/console.js
@@ -36,6 +36,8 @@ export default class ConsoleComponent {
case KeyboardEvent.DOM_VK_ESCAPE:
return this.hideCommand();
case KeyboardEvent.DOM_VK_RETURN:
+ e.stopPropagation();
+ e.preventDefault();
return this.onEntered(e.target.value);
case KeyboardEvent.DOM_VK_TAB:
if (e.shiftKey) {