forked from github/plane
refactor: both delete or backspace can be used to open modal (#1829)
* refactor: both delete or backspace can be used to open modal * fix: 'Bulk Issue Delete' modal will open on single click
This commit is contained in:
parent
8c8668a3e6
commit
f562fcd466
@ -104,9 +104,6 @@ export const CommandPalette: React.FC = () => {
|
|||||||
} else if (keyPressed === "b") {
|
} else if (keyPressed === "b") {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
toggleCollapsed();
|
toggleCollapsed();
|
||||||
} else if (keyPressed === "backspace") {
|
|
||||||
e.preventDefault();
|
|
||||||
setIsBulkDeleteIssuesModalOpen(true);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (keyPressed === "c") {
|
if (keyPressed === "c") {
|
||||||
@ -123,6 +120,9 @@ export const CommandPalette: React.FC = () => {
|
|||||||
setIsCreateCycleModalOpen(true);
|
setIsCreateCycleModalOpen(true);
|
||||||
} else if (keyPressed === "m") {
|
} else if (keyPressed === "m") {
|
||||||
setIsCreateModuleModalOpen(true);
|
setIsCreateModuleModalOpen(true);
|
||||||
|
} else if (keyPressed === "backspace" || keyPressed === "delete") {
|
||||||
|
e.preventDefault();
|
||||||
|
setIsBulkDeleteIssuesModalOpen(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user