delete on space
This commit is contained in:
parent
0d47aa6886
commit
3dc4b7b761
@ -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…
x
Reference in New Issue
Block a user