mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
a workaround of issue #2886, following the behavior address input of
chrome
This commit is contained in:
@@ -419,7 +419,10 @@ class _PeerSearchBarState extends State<PeerSearchBar> {
|
||||
Widget _buildSearchBar() {
|
||||
RxBool focused = false.obs;
|
||||
FocusNode focusNode = FocusNode();
|
||||
focusNode.addListener(() => focused.value = focusNode.hasFocus);
|
||||
focusNode.addListener(() {
|
||||
focused.value = focusNode.hasFocus;
|
||||
peerSearchTextController.selection = TextSelection(baseOffset: 0, extentOffset: peerSearchTextController.value.text.length);
|
||||
});
|
||||
return Container(
|
||||
width: 120,
|
||||
decoration: BoxDecoration(
|
||||
|
||||
Reference in New Issue
Block a user