Activate key on enter
This commit is contained in:
parent
d91fbb563a
commit
0a59dd5638
|
@ -56,6 +56,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#btnRegisterKey").click(registerKey);
|
$("#btnRegisterKey").click(registerKey);
|
||||||
|
|
||||||
|
document.getElementById("key_name").addEventListener("keydown", event => {
|
||||||
|
if (event.keyCode === 13) {
|
||||||
|
event.preventDefault();
|
||||||
|
document.getElementById("btnRegisterKey").click();
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue