mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-03 13:09:15 -04:00
delete on space
This commit is contained in:
parent
0d47aa6886
commit
3dc4b7b761
1 changed files with 3 additions and 3 deletions
|
@ -324,11 +324,11 @@ class OperationsWaiter {
|
|||
}
|
||||
|
||||
/**
|
||||
* Handler for save favourites click events.
|
||||
* Saves the selected favourites and reloads them.
|
||||
* Handler for delete favourites keydown events.
|
||||
* delete the selected favourite from the list.
|
||||
*/
|
||||
deleteFavourite(event) {
|
||||
if (event.key === "Enter") {
|
||||
if (event.key === "Enter" || event.key === " ") {
|
||||
const el = event.target;
|
||||
if (el && el.parentNode) {
|
||||
el.parentNode.remove();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue