WebUI: Prevent mobile keyboards from capitalizing username input

This PR improves the user experience on mobile devices by ensuring the username field in the login form does not automatically capitalize the first letter when the keyboard opens.
Mobile browsers tend to automatically capitalize the first letter of text inputs, which can lead to login failures if the username is case-sensitive. By explicitly disabling autocapitalization, the WebUI ensures a more predictable and user-friendly experience on mobile devices.

Tested on:
iOS (Safari)

Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>

PR #22725.
This commit is contained in:
samet sahin 2025-05-18 09:49:40 +02:00 committed by GitHub
commit 83799f4f07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@
<form id="loginform">
<div class="row">
<label for="username">QBT_TR(Username)QBT_TR[CONTEXT=Login]</label><br>
<input type="text" id="username" name="username" autocomplete="username" autofocus required>
<input type="text" id="username" name="username" autocomplete="username" autocapitalize="none" autofocus required>
</div>
<div class="row">
<label for="password">QBT_TR(Password)QBT_TR[CONTEXT=Login]</label><br>