Skip to content

Build your personal knowledge base with Trilium Notes

feat(protected_session): set autofocus to password field

Panagiotis Papadopoulosf657b9dec1c4
diff --git a/src/public/app/widgets/type_widgets/protected_session.js b/src/public/app/widgets/type_widgets/protected_session.js
index a8726de745..337b786561 100644
--- a/src/public/app/widgets/type_widgets/protected_session.js
+++ b/src/public/app/widgets/type_widgets/protected_session.js
@@ -20,7 +20,7 @@ const TPL = `
<form class="protected-session-password-form">
<div class="form-group">
<label for="protected-session-password-in-detail">${t("protected_session.enter_password_instruction")}</label>
- <input class="protected-session-password-in-detail form-control protected-session-password" type="password">
+ <input class="protected-session-password-in-detail form-control protected-session-password" type="password" autofocus>
</div>
<button class="btn btn-primary">${t("protected_session.start_session_button")}</button>