mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-03 13:09:15 -04:00
made small change
This commit is contained in:
parent
1b877ca482
commit
ab816b62ec
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue