Skip to content

Commit

Permalink
Update index.html (#486)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Hunter <[email protected]>
  • Loading branch information
ianfhunter authored Apr 3, 2024
1 parent 6f09e4a commit 6058893
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

await gnoll.roll(notation.value).then(result => output.innerHTML = result);
}
// Submit on "Enter"
document.getElementById("tbNotation").addEventListener("keypress", function(event) {
if (event.key === "Enter") {
onRoll();
}
});
</script>
</head>
<body>
Expand Down

0 comments on commit 6058893

Please sign in to comment.