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") {
|
||||
e.preventDefault();
|
||||
toggleCollapsed();
|
||||
} else if (keyPressed === "backspace") {
|
||||
e.preventDefault();
|
||||
setIsBulkDeleteIssuesModalOpen(true);
|
||||
}
|
||||
} else {
|
||||
if (keyPressed === "c") {
|
||||
@ -123,6 +120,9 @@ export const CommandPalette: React.FC = () => {
|
||||
setIsCreateCycleModalOpen(true);
|
||||
} else if (keyPressed === "m") {
|
||||
setIsCreateModuleModalOpen(true);
|
||||
} else if (keyPressed === "backspace" || keyPressed === "delete") {
|
||||
e.preventDefault();
|
||||
setIsBulkDeleteIssuesModalOpen(true);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user