From d8736696dbb71efd67dc15d17c66a2400a6b4726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Sun, 7 Feb 2016 05:42:30 +0800 Subject: [PATCH] Should prevent default since it is handled --- botanjs/src/Components/MessageBox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/botanjs/src/Components/MessageBox.js b/botanjs/src/Components/MessageBox.js index 8210c0a..52f0992 100644 --- a/botanjs/src/Components/MessageBox.js +++ b/botanjs/src/Components/MessageBox.js @@ -32,10 +32,12 @@ if ( no && code == 27 ) { + e.preventDefault(); _no.click(); } else if( code == 13 && ( e.ctrlKey || e.altKey ) ) { + e.preventDefault(); _yes.click(); } }