From 6db245892944b9e0a6a4f82b6e63453c880e3686 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Fri, 10 Nov 2017 21:31:40 +0900 Subject: [PATCH] prevent --- src/console/components/console.js | 2 ++ 1 file changed, 2 insertions(+) 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) {