From be7b184d97ca73446d98af43991e71c8e75f7e5b Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 22 Nov 2019 16:01:32 +0100 Subject: [PATCH] Fix space bar shortcut to dselect a radio input --- www/common/common-interface.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index fbeb6a3cc..3cfc24de7 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -1007,6 +1007,7 @@ define([ if (e.which === 32) { e.stopPropagation(); e.preventDefault(); + if ($(input).is(':checked')) { return; } $(input).prop('checked', !$(input).is(':checked')); $(input).change(); }