From 360a8be0ae6d4d28b0174fc7b77913ea599e5fad Mon Sep 17 00:00:00 2001 From: reschan Date: Mon, 18 Oct 2021 09:41:24 +0700 Subject: [PATCH] feat: press enter to call calculateBuild on powders and item name --- sq2.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sq2.js b/sq2.js index aa931f0..6e2a59f 100644 --- a/sq2.js +++ b/sq2.js @@ -37,6 +37,18 @@ $(document).ready(function(){ }); // update builds + jQuery(document).on("keypress", '.item-name', function(event){ + if (event.keyCode == 13) { + calculateBuild(); + } + }); + + jQuery(document).on("keypress", '.powder-input', function(event){ + if (event.keyCode == 13) { + calculateBuild(); + } + }); + jQuery(document).on("keypress", '.skp-input', function(event){ if (event.keyCode == 13) { updateStats();