From ee58de92b9422b562cbbd1e880a83fdbba652ae8 Mon Sep 17 00:00:00 2001 From: up730418 Date: Mon, 12 Feb 2018 10:46:40 +0000 Subject: [PATCH] Stop Enter selecting a drop down menu when the modal dialog is displayed --- src/app/ui/modaldialog.js | 1 + 1 file changed, 1 insertion(+) 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) {