An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
fix text selection
Sahil Yeole00555a8e9e9a
diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dartindex 0b15404ca..e714d979f 100644--- a/flutter/lib/desktop/pages/connection_page.dart+++ b/flutter/lib/desktop/pages/connection_page.dart@@ -287,15 +287,10 @@ class _ConnectionPageState extends State<ConnectionPage>if (fieldFocusNode.hasFocus && !isPeersLoading){_fetchPeers();}- // select all to facilitate removing text, just following the behavior of address input of chrome- SchedulerBinding.instance.addPostFrameCallback((_) {- final textLength = fieldTextEditingController.value.text.length;- Future.delayed(Duration(milliseconds: 150) , () {- fieldTextEditingController.selection = TextSelection.collapsed(offset: textLength);- fieldTextEditingController.selection = TextSelection(baseOffset: 0, extentOffset: textLength);- });- });});+ final textLength = fieldTextEditingController.value.text.length;+ // select all to facilitate removing text, just following the behavior of address input of chrome+ fieldTextEditingController.selection = TextSelection(baseOffset: 0, extentOffset: textLength);return Obx(() =>TextField(maxLength: 90,