Skip to content

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

chore: add autofocus to create file dialog

Ilian Sapundshiev2df389e14f64
diff --git a/src/renderer/components/dialogs/components/CreateFile.tsx b/src/renderer/components/dialogs/components/CreateFile.tsx
index 43559a340..2b885fc11 100644
--- a/src/renderer/components/dialogs/components/CreateFile.tsx
+++ b/src/renderer/components/dialogs/components/CreateFile.tsx
@@ -143,6 +143,7 @@ function CreateFile(props: Props) {
defaultValue={fileName}
disabled={noSuitableLocation}
fullWidth={true}
+ autoFocus
data-tid={tid('newEntryDialogInputTID')}
/>
{inputError && (