mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 18:36:11 +02:00
Fix. Connection, 2FA dialog, esc & enter (#6946)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
2576b46f34
commit
b1a946ec20
41 changed files with 4 additions and 45 deletions
|
@ -1,6 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
@ -429,7 +428,6 @@ class Dialog2FaField extends ValidationField {
|
|||
this.autoFocus = true,
|
||||
this.reRequestFocus = false,
|
||||
this.title,
|
||||
this.helperText,
|
||||
this.hintText,
|
||||
this.errorText,
|
||||
this.readyCallback,
|
||||
|
@ -440,7 +438,6 @@ class Dialog2FaField extends ValidationField {
|
|||
final bool autoFocus;
|
||||
final bool reRequestFocus;
|
||||
final String? title;
|
||||
final String? helperText;
|
||||
final String? hintText;
|
||||
final String? errorText;
|
||||
final VoidCallback? readyCallback;
|
||||
|
@ -457,7 +454,6 @@ class Dialog2FaField extends ValidationField {
|
|||
reRequestFocus: reRequestFocus,
|
||||
hintText: hintText,
|
||||
readyCallback: readyCallback,
|
||||
helperText: helperText ?? translate('2fa_tip'),
|
||||
onChanged: _onChanged,
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: [
|
||||
|
@ -1860,6 +1856,8 @@ void enter2FaDialog(
|
|||
'OK',
|
||||
onPressed: submitReady.isTrue ? submit : null,
|
||||
)),
|
||||
]);
|
||||
],
|
||||
onSubmit: submit,
|
||||
onCancel: cancel);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue