refactor: keyboard listen and grab && fix shift + scroll

This commit is contained in:
Asura
2022-10-30 05:44:33 -07:00
committed by Chieh Wang
parent eec5c16876
commit 996a317b57
9 changed files with 208 additions and 122 deletions

View File

@@ -428,6 +428,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
@override
void initState() {
super.initState();
bind.mainStartGrabKeyboard();
Timer(const Duration(seconds: 5), () async {
updateUrl = await bind.mainGetSoftwareUpdateUrl();
if (updateUrl.isNotEmpty) setState(() {});

View File

@@ -250,8 +250,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "541f05f766c3f72984ff40b70dd3c7d061f2ce61"
resolved-ref: "541f05f766c3f72984ff40b70dd3c7d061f2ce61"
ref: bf278fc8a8ff787e46fa3ab97674373bfaa20f23
resolved-ref: bf278fc8a8ff787e46fa3ab97674373bfaa20f23
url: "https://github.com/Kingtous/rustdesk_desktop_multi_window"
source: git
version: "0.1.0"