feat: press enter to call calculateBuild on powders and item name
This commit is contained in:
parent
219513a300
commit
360a8be0ae
1 changed files with 12 additions and 0 deletions
12
sq2.js
12
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();
|
||||
|
|
Loading…
Reference in a new issue