Fix. Connection, 2FA dialog, esc & enter (#6946)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou authored and GitHub committed 2024-01-22 13:44:10 +08:00
1 parent 2576b46f34
commit b1a946ec20
41 files changed
+4 -45

No files matched your search

+1 -1
View File
@@ -1249,7 +1249,7 @@ function on_2fa_check(last_msg) {
msgbox("custom-2fa-verification-code", translate('Verification code'), <div .form .set-password>
{ isEmailCheck && <div><span>{translate('Email')}:</span><span>{emailHint}</span></div> }
<div><span>{translate(isEmailCheck ? 'Verification code' : '2FA code')}:</span><input|text name="verification_code" .outline-focus /></div>
<div style="font-size:0.9em; margin-bottom:1em;">{translate(isEmailCheck ? 'verification_tip' : '2fa_tip')}</div>
{ isEmailCheck && <div style="font-size:0.9em; margin-bottom:1em;">{translate('verification_tip')}</div> }
</div>, "",
function(res=null, show_progress) {
if (!res) return;