The changes made for T5543: pinentry-qt: Accessibility switch to repeat on enter do not work properly. The Ok button is no longer greyed out, but now pressing Enter in the first password field triggers an attempt to accept the dialog which most likely fails with a password mismatch error.
It turns out that QDialog processes the key press of the Enter key after QLineEdit has emitted the returnPressed signal and we have given focus to the repeat password field which made the Ok button the default button again.