From 18fbb72d195d5edd6488ace4832907174c178dac Mon Sep 17 00:00:00 2001 From: Anthony Di Iorio Date: Wed, 23 Dec 2020 03:23:31 -0500 Subject: [PATCH] Spacebar moves to name field Spacebar moves to the name field when you're entering a callsign Similar to contesting ux, good for pileups. --- application/views/interface_assets/footer.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index b880b6b6..e53b79c4 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -548,6 +548,14 @@ $(document).on('change', 'input', function(){ }); }); + //Spacebar moves to the name field when you're entering a callsign + //Similar to contesting ux, good for pileups. + $("#callsign").on("keypress", function(e) { + if (e.which == 32){ + $("#name").focus(); + return false; //Eliminate space char + } + }); // On Key up check and suggest callsigns $("#callsign").keyup(function() {