diff --git a/flutter_hbb/lib/home_page.dart b/flutter_hbb/lib/home_page.dart index a7fe87852..dd9c1f24d 100644 --- a/flutter_hbb/lib/home_page.dart +++ b/flutter_hbb/lib/home_page.dart @@ -49,7 +49,7 @@ class _HomePageState extends State { position: RelativeRect.fromLTRB(3000, 70, 3000, 70), items: [ PopupMenuItem( - child: Text(translate('ID/Relay Server')), + child: Text(translate('ID Server')), value: 'server'), PopupMenuItem( child: Text(translate('About') + ' RustDesk'), @@ -266,7 +266,7 @@ void showServer(BuildContext context) { showAlertDialog( context, (setState) => Tuple3( - Text(translate('ID/Relay Server')), + Text(translate('ID Server')), Form( key: formKey, child: @@ -281,6 +281,7 @@ void showServer(BuildContext context) { id = value.trim(); }, ), + /* TextFormField( initialValue: relay0, decoration: InputDecoration( @@ -291,6 +292,7 @@ void showServer(BuildContext context) { relay = value.trim(); }, ), + */ TextFormField( initialValue: key0, decoration: InputDecoration( diff --git a/flutter_hbb/lib/remote_page.dart b/flutter_hbb/lib/remote_page.dart index 721ae01f4..53e23c44c 100644 --- a/flutter_hbb/lib/remote_page.dart +++ b/flutter_hbb/lib/remote_page.dart @@ -490,6 +490,14 @@ class _RemotePageState extends State { ); FFI.ctrl = old; }), + wrap('Ctrl+V', () { + var old = FFI.ctrl; + FFI.ctrl = true; + FFI.inputKey( + 'VK_V', + ); + FFI.ctrl = old; + }), wrap('Ctrl+S', () { var old = FFI.ctrl; FFI.ctrl = true; @@ -867,8 +875,7 @@ void showSetOSPassword(BuildContext context, bool login) { '{"name": "os-password", "value": "${text}"}'); FFI.setByName('peer_option', '{"name": "auto-login", "value": "${autoLogin ? 'Y' : ''}"}'); - print(text); - if (text != "") { + if (text != "" && login) { FFI.setByName('input_os_password', text); } Navigator.pop(context);