Preventing default on enter handler as it seems to call click handlers now. Fixes #856

This commit is contained in:
Jonathan Kingston 2017-09-26 11:16:58 +01:00
parent b0cc6e7c2f
commit 07711aaecc

View file

@ -168,6 +168,7 @@ const Logic = {
});
element.addEventListener("keydown", (e) => {
if (e.keyCode === 13) {
e.preventDefault();
handler(e);
}
});