This commit is contained in:
rustdesk 2021-08-06 22:45:45 +08:00
parent 46e239dabe
commit 0704cc8ee4
2 changed files with 13 additions and 4 deletions

View File

@ -49,7 +49,7 @@ class _HomePageState extends State<HomePage> {
position: RelativeRect.fromLTRB(3000, 70, 3000, 70), position: RelativeRect.fromLTRB(3000, 70, 3000, 70),
items: [ items: [
PopupMenuItem<String>( PopupMenuItem<String>(
child: Text(translate('ID/Relay Server')), child: Text(translate('ID Server')),
value: 'server'), value: 'server'),
PopupMenuItem<String>( PopupMenuItem<String>(
child: Text(translate('About') + ' RustDesk'), child: Text(translate('About') + ' RustDesk'),
@ -266,7 +266,7 @@ void showServer(BuildContext context) {
showAlertDialog( showAlertDialog(
context, context,
(setState) => Tuple3( (setState) => Tuple3(
Text(translate('ID/Relay Server')), Text(translate('ID Server')),
Form( Form(
key: formKey, key: formKey,
child: child:
@ -281,6 +281,7 @@ void showServer(BuildContext context) {
id = value.trim(); id = value.trim();
}, },
), ),
/*
TextFormField( TextFormField(
initialValue: relay0, initialValue: relay0,
decoration: InputDecoration( decoration: InputDecoration(
@ -291,6 +292,7 @@ void showServer(BuildContext context) {
relay = value.trim(); relay = value.trim();
}, },
), ),
*/
TextFormField( TextFormField(
initialValue: key0, initialValue: key0,
decoration: InputDecoration( decoration: InputDecoration(

View File

@ -490,6 +490,14 @@ class _RemotePageState extends State<RemotePage> {
); );
FFI.ctrl = old; FFI.ctrl = old;
}), }),
wrap('Ctrl+V', () {
var old = FFI.ctrl;
FFI.ctrl = true;
FFI.inputKey(
'VK_V',
);
FFI.ctrl = old;
}),
wrap('Ctrl+S', () { wrap('Ctrl+S', () {
var old = FFI.ctrl; var old = FFI.ctrl;
FFI.ctrl = true; FFI.ctrl = true;
@ -867,8 +875,7 @@ void showSetOSPassword(BuildContext context, bool login) {
'{"name": "os-password", "value": "${text}"}'); '{"name": "os-password", "value": "${text}"}');
FFI.setByName('peer_option', FFI.setByName('peer_option',
'{"name": "auto-login", "value": "${autoLogin ? 'Y' : ''}"}'); '{"name": "auto-login", "value": "${autoLogin ? 'Y' : ''}"}');
print(text); if (text != "" && login) {
if (text != "") {
FFI.setByName('input_os_password', text); FFI.setByName('input_os_password', text);
} }
Navigator.pop(context); Navigator.pop(context);