feat: add specific keyboard hook

This commit is contained in:
kingtous
2022-06-27 09:25:20 +08:00
parent c1cf9307ac
commit f2460c26ca
3 changed files with 19 additions and 2 deletions

View File

@@ -630,8 +630,17 @@ class _RemotePageState extends State<RemotePage>
id: widget.id,
));
}
return Container(
color: MyTheme.canvasColor, child: Stack(children: paints));
paints.add(getHelpTools());
return MouseRegion(
onEnter: (evt) {
_ffi.bind.hostStopSystemKeyPropagate(stopped: false);
},
onExit: (evt) {
_ffi.bind.hostStopSystemKeyPropagate(stopped: true);
},
child: Container(
color: MyTheme.canvasColor, child: Stack(children: paints)),
);
}
int lastMouseDownButtons = 0;