From 43ff7923969585d448359478b3bf7d4ea63ef4bf Mon Sep 17 00:00:00 2001 From: Philip Kaludercic <philip.kaludercic@fau.de> Date: Thu, 18 Jan 2024 11:05:28 +0000 Subject: [PATCH] Prevent enter from selecting the info button Taken from https://stackoverflow.com/questions/5629805/disabling-enter-key-for-form/52040802#52040802 --- quiz.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quiz.html b/quiz.html index df2072d..9842433 100644 --- a/quiz.html +++ b/quiz.html @@ -58,11 +58,11 @@ </p> <footer> - <code>$Id: quiz.html,v 1.4 2024/01/12 10:22:53 oj14ozun Exp oj14ozun $</code> + <code>$Id: quiz.html,v 1.5 2024/01/12 13:23:32 oj14ozun Exp oj14ozun $</code> <code id="js-version"></code> </footer> </aside> - <button id="info-toggle">i</button> + <button onkeydown="return event.keyCode != 13;" id="info-toggle">i</button> </div> <noscript> -- GitLab