From 71811ebf0db0143cf887c9e41c38cdc44a8a239d Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Tue, 25 Mar 2025 11:55:24 +0500 Subject: [PATCH] mobile: focus keyboard if biometry is disabled --- apps/mobile/app/components/app-lock/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/mobile/app/components/app-lock/index.tsx b/apps/mobile/app/components/app-lock/index.tsx index 61d0742f1..f8aed90a5 100644 --- a/apps/mobile/app/components/app-lock/index.tsx +++ b/apps/mobile/app/components/app-lock/index.tsx @@ -289,6 +289,14 @@ const AppLocked = () => { keyboardType={ appLockHasPasswordSecurity ? keyboardType : "default" } + onLayout={async () => { + if ( + !biometricsAuthEnabled || + !(await BiometricService.isBiometryAvailable()) + ) { + passwordInputRef.current?.focus(); + } + }} placeholder={ appLockHasPasswordSecurity ? keyboardType === "numeric"