feat: press enter to call calculateBuild on powders and item name

This commit is contained in:
reschan 2021-10-18 09:41:24 +07:00
parent 219513a300
commit 360a8be0ae

12
sq2.js
View file

@ -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();