TagSpaces is an offline, open source, document manager with tagging support
remove escape from Dialogs
sytolkb2fdde06c157
diff --git a/app/components/dialogs/AddTagToTagGroupDialog.tsx b/app/components/dialogs/AddTagToTagGroupDialog.tsxindex 7fded60cc..e475a4bc5 100644--- a/app/components/dialogs/AddTagToTagGroupDialog.tsx+++ b/app/components/dialogs/AddTagToTagGroupDialog.tsx@@ -82,9 +82,9 @@ function AddTagToTagGroupDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {onClose();- }+ }*/}}><DialogTitle>diff --git a/app/components/dialogs/ColorPickerDialog.tsx b/app/components/dialogs/ColorPickerDialog.tsxindex a60fe3c89..9710753ce 100644--- a/app/components/dialogs/ColorPickerDialog.tsx+++ b/app/components/dialogs/ColorPickerDialog.tsx@@ -101,9 +101,9 @@ function ColorPickerDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {onClose();- }+ }*/}}><DialogTitle data-tid="colorPickerDialogTitle">diff --git a/app/components/dialogs/CreateDialog.tsx b/app/components/dialogs/CreateDialog.tsxindex 2f3972d98..c7e52a2b6 100644--- a/app/components/dialogs/CreateDialog.tsx+++ b/app/components/dialogs/CreateDialog.tsx@@ -240,9 +240,9 @@ function CreateDialog(props: Props) {// } else if (event.key === 'A' || event.key === 'a') {// addFile();// } else- if (event.key === 'Escape') {+ /* if (event.key === 'Escape') {onClose();- }+ } */}}><DialogTitle>diff --git a/app/components/dialogs/CreateDirectoryDialog.tsx b/app/components/dialogs/CreateDirectoryDialog.tsxindex f41fee239..2de5ee773 100644--- a/app/components/dialogs/CreateDirectoryDialog.tsx+++ b/app/components/dialogs/CreateDirectoryDialog.tsx@@ -107,9 +107,9 @@ function CreateDirectoryDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {onClose();- }+ }*/}}><DialogTitle>diff --git a/app/components/dialogs/CreateTagGroupDialog.tsx b/app/components/dialogs/CreateTagGroupDialog.tsxindex a673104fe..e4e7a3396 100644--- a/app/components/dialogs/CreateTagGroupDialog.tsx+++ b/app/components/dialogs/CreateTagGroupDialog.tsx@@ -183,9 +183,9 @@ function CreateTagGroupDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {onClose();- }+ }*/}}><DialogTitle>diff --git a/app/components/dialogs/CreateTagsDialog.tsx b/app/components/dialogs/CreateTagsDialog.tsxindex 75f90ec75..8de281460 100644--- a/app/components/dialogs/CreateTagsDialog.tsx+++ b/app/components/dialogs/CreateTagsDialog.tsx@@ -95,9 +95,9 @@ function CreateTagsDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {onClose();- }+ }*/}}><DialogTitle>diff --git a/app/components/dialogs/EditTagDialog.tsx b/app/components/dialogs/EditTagDialog.tsxindex 003952e9e..b4d109e09 100644--- a/app/components/dialogs/EditTagDialog.tsx+++ b/app/components/dialogs/EditTagDialog.tsx@@ -139,9 +139,9 @@ function EditTagDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {onClose();- }+ }*/}}><DialogTitle style={{ overflow: 'visible' }}>diff --git a/app/components/dialogs/EditTagGroupDialog.tsx b/app/components/dialogs/EditTagGroupDialog.tsxindex 8aff56f6e..c50015e25 100644--- a/app/components/dialogs/EditTagGroupDialog.tsx+++ b/app/components/dialogs/EditTagGroupDialog.tsx@@ -297,9 +297,9 @@ function EditTagGroupDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {props.onClose();- }+ }*/}}>{renderTitle()}diff --git a/app/components/dialogs/OpenLinkDialog.tsx b/app/components/dialogs/OpenLinkDialog.tsxindex fe6785f87..fb9463ea1 100644--- a/app/components/dialogs/OpenLinkDialog.tsx+++ b/app/components/dialogs/OpenLinkDialog.tsx@@ -96,9 +96,9 @@ function OpenLinkDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {onClose();- }+ }*/}}><DialogTitle>diff --git a/app/components/dialogs/RenameEntryDialog.tsx b/app/components/dialogs/RenameEntryDialog.tsxindex 590131600..a658cb585 100644--- a/app/components/dialogs/RenameEntryDialog.tsx+++ b/app/components/dialogs/RenameEntryDialog.tsx@@ -167,9 +167,9 @@ function RenameEntryDialog(props: Props) {event.preventDefault();event.stopPropagation();onConfirm();- } else if (event.key === 'Escape') {+ } /*else if (event.key === 'Escape') {onClose();- }+ }*/}}><DialogTitle>