Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: remove clear seleciton logic on escape key press (#4735)

Aaryan Khandelwal17ce1bceb6d8
diff --git a/web/hooks/use-multiple-select.ts b/web/hooks/use-multiple-select.ts
index fdb3c0b1c1..0a0013eac9 100644
--- a/web/hooks/use-multiple-select.ts
+++ b/web/hooks/use-multiple-select.ts
@@ -271,20 +271,6 @@ export const useMultipleSelect = (props: Props) => {
[disabled, entitiesList, handleEntitySelection, isGroupSelected]
);
- // clear selection on escape key press
- useEffect(() => {
- if (disabled) return;
-
- const handleKeyDown = (e: KeyboardEvent) => {
- if (e.key === "Escape") clearSelection();
- };
-
- window.addEventListener("keydown", handleKeyDown);
- return () => {
- window.removeEventListener("keydown", handleKeyDown);
- };
- }, [clearSelection, disabled]);
-
// select entities on shift + arrow up/down key press
useEffect(() => {
if (disabled) return;