Handle pressing Enter in tracking code box

This commit is contained in:
Skylar Ittner 2019-11-30 19:05:47 -07:00
parent 4c24d8fba8
commit 008ab56ce8

View File

@ -147,4 +147,10 @@ $("#trackbtn").click(function () {
} else {
app.dialog.alert("That's not a valid tracking code.", "Error");
}
});
$("input[name=trackingcode]").on('keypress', function (e) {
if (e.which == 13) {
$("#trackbtn").click();
}
});