mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 16:13:46 +08:00
Set input method hints in typed input fields
Phone, e-mail, URL, username, code, date and amount fields now tell the input method what they are for, so it can pick a suitable layout and skip predictive text where it only gets in the way. One-time codes and secrets are additionally marked with Qt::ImhSensitiveData. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -311,6 +311,9 @@ void PasscodeBox::prepare() {
|
||||
) | rpl::on_next([=] {
|
||||
newChanged();
|
||||
}, _passwordHint->lifetime());
|
||||
_recoverEmail->setInputMethodHints(Qt::ImhEmailCharactersOnly
|
||||
| Qt::ImhNoAutoUppercase
|
||||
| Qt::ImhNoPredictiveText);
|
||||
_recoverEmail->changes(
|
||||
) | rpl::on_next([=] {
|
||||
if (!_emailError.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user