Activate key on enter

This commit is contained in:
devStorm 2020-05-18 05:27:57 -07:00
parent d91fbb563a
commit 0a59dd5638
No known key found for this signature in database
GPG key ID: D52E1B66F336AC57

View file

@ -56,6 +56,13 @@
}
$("#btnRegisterKey").click(registerKey);
document.getElementById("key_name").addEventListener("keydown", event => {
if (event.keyCode === 13) {
event.preventDefault();
document.getElementById("btnRegisterKey").click();
}
});
</script>
</div>