Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: ui improvements

Ilian Sapundshievd2f38f855784
diff --git a/app/components/dialogs/CreateDialog.tsx b/app/components/dialogs/CreateDialog.tsx
index dfda28bf0..3763d8e46 100644
--- a/app/components/dialogs/CreateDialog.tsx
+++ b/app/components/dialogs/CreateDialog.tsx
@@ -363,6 +363,13 @@ function CreateDialog(props: Props) {
label={i18n.t('core:newFileName')}
onChange={handleInputChange}
onFocus={onInputFocus}
+ onKeyDown={event => {
+ if (event.key === 'Enter' || event.keyCode === 13) {
+ event.preventDefault();
+ event.stopPropagation();
+ createMarkdownFile();
+ }
+ }}
defaultValue={fileName.current}
disabled={noSuitableLocation}
fullWidth={true}
diff --git a/app/components/dialogs/MoveCopyFilesDialog.tsx b/app/components/dialogs/MoveCopyFilesDialog.tsx
index 8f7b41c69..47bf6273e 100644
--- a/app/components/dialogs/MoveCopyFilesDialog.tsx
+++ b/app/components/dialogs/MoveCopyFilesDialog.tsx
@@ -296,6 +296,7 @@ function MoveCopyFilesDialog(props: Props) {
data-tid="confirmCopyFiles"
disabled={!targetPath || targetPath === props.currentDirectoryPath}
color="primary"
+ variant="contained"
>
{i18n.t('core:copyEntriesButton')}
</Button>