Focus current password field first when updating wallet password #712

Closed
opened 2026-05-18 14:46:08 +00:00 by johnny9 · 0 comments
johnny9 commented 2026-05-18 14:46:08 +00:00 (Migrated from github.com)

Problem

When opening Wallet Password Settings in update-password mode, the current-password field appears first, but keyboard focus is assigned to the new-password field.

The current password field is shown near the top of WalletPasswordSettings.qml, while focus: true is hard-coded on the new-password field. This means users can start typing into the wrong field when changing an existing wallet password.

Expected behavior

When updating an existing wallet password, the current-password field should receive initial focus.

When setting a password for an unencrypted wallet, the new-password field should continue to receive initial focus.

Notes

Raised as a follow-up from review of #551: https://github.com/bitcoin-core/gui-qml/pull/551#pullrequestreview-4310727801

Relevant code:

  • qml/pages/wallet/WalletPasswordSettings.qml: current-password field and new-password field focus behavior
## Problem When opening Wallet Password Settings in update-password mode, the current-password field appears first, but keyboard focus is assigned to the new-password field. The current password field is shown near the top of `WalletPasswordSettings.qml`, while `focus: true` is hard-coded on the new-password field. This means users can start typing into the wrong field when changing an existing wallet password. ## Expected behavior When updating an existing wallet password, the current-password field should receive initial focus. When setting a password for an unencrypted wallet, the new-password field should continue to receive initial focus. ## Notes Raised as a follow-up from review of #551: https://github.com/bitcoin-core/gui-qml/pull/551#pullrequestreview-4310727801 Relevant code: - `qml/pages/wallet/WalletPasswordSettings.qml`: current-password field and new-password field focus behavior
Sign in to join this conversation.
No description provided.