made small change

This commit is contained in:
j264415 2024-02-14 17:29:43 +00:00
parent 1b877ca482
commit ab816b62ec
2 changed files with 2 additions and 2 deletions

View file

@ -148,7 +148,7 @@ class Manager {
document.getElementById("edit-favourites").addEventListener("click", this.ops.editFavouritesClick.bind(this.ops));
document.getElementById("save-favourites").addEventListener("click", this.ops.saveFavouritesClick.bind(this.ops));
document.getElementById("categories").addEventListener("keydown", this.ops.onKeyPress.bind(this.ops));
this.addDynamicListener(".op-list li.operation","keydown", this.ops.operationPopulateRecipe.bind(this.ops));
this.addDynamicListener(".op-list li.operation","keydown", this.ops.keysPopulateRecipe.bind(this.ops));
document.getElementById("reset-favourites").addEventListener("click", this.ops.resetFavouritesClick.bind(this.ops));
this.addDynamicListener(".op-list", "oplistcreate", this.ops.opListCreate, this.ops);
this.addDynamicListener("li.operation", "operationadd", this.recipe.opAdd, this.recipe);

View file

@ -333,7 +333,7 @@ class OperationsWaiter {
* @param {Event} ev
*/
keysPopulateRecipe(ev){
if(ev.ctrlKey && ev.key ==="Enter"){
if(ev.ctrlKey && ev.key === "Enter"){
const li = ev.target
this.manager.recipe.addOperation(li.textContent);
}