mirror of
https://github.com/dtinth/comic-mono-font.git
synced 2026-02-21 22:43:59 +00:00
Fix exampleText enter functionality
This commit is contained in:
6
index.js
6
index.js
@@ -115,6 +115,12 @@ seriousLightItalicButton.addEventListener("click", function () {
|
||||
mainClasses.add("seriousLightItalic");
|
||||
});
|
||||
|
||||
newExampleText.addEventListener("keydown", function (event) {
|
||||
if (event.code === "Enter") {
|
||||
exampleText.setHTML(newExampleText.value);
|
||||
}
|
||||
});
|
||||
|
||||
newExampleTextButton.addEventListener("click", function () {
|
||||
exampleText.setHTML(newExampleText.value);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user