added keyboard shortcuts but they don't work on localhost page
This commit is contained in:
+10
@@ -82,3 +82,13 @@ function afficherHeure() {
|
||||
|
||||
afficherHeure();
|
||||
setInterval(afficherHeure, 1000);
|
||||
|
||||
zoneMessage.addEventListener("keydown", function (event) {
|
||||
if (event.key === "Enter" && event.ctrlKey) {
|
||||
formulaire.requestSubmit();
|
||||
}
|
||||
if (event.key === "Escape") {
|
||||
zoneMessage.value = "";
|
||||
rafraichirCompteur();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user