Commit ee58de92 authored by up730418's avatar up730418 Committed by yann300

Stop Enter selecting a drop down menu when the modal dialog is displayed

parent 25acb740
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment