diff --git a/src/app/ui/modaldialog.js b/src/app/ui/modaldialog.js index 023b2f181c..d36944cb0f 100644 --- a/src/app/ui/modaldialog.js +++ b/src/app/ui/modaldialog.js @@ -40,6 +40,7 @@ module.exports = (title, content, ok, cancel) => { } function modalKeyEvent (e) { + e.preventDefault() if (e.keyCode === 27) { cancelListener() } else if (e.keyCode === 13) {