mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 10:26:19 +02:00
fix: android, touch mode, correct cursor input, on soft keyboard shows (#8426)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
a679e4a5e3
commit
82bf04da81
2 changed files with 19 additions and 15 deletions
|
@ -721,8 +721,8 @@ class _KeyHelpToolsState extends State<KeyHelpTools> {
|
|||
if (renderObject is RenderBox) {
|
||||
final size = renderObject.size;
|
||||
Offset pos = renderObject.localToGlobal(Offset.zero);
|
||||
gFFI.cursorModel.keyHelpToolsRect =
|
||||
Rect.fromLTWH(pos.dx, pos.dy, size.width, size.height);
|
||||
gFFI.cursorModel.keyHelpToolsVisibilityChanged(
|
||||
Rect.fromLTWH(pos.dx, pos.dy, size.width, size.height));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -734,7 +734,7 @@ class _KeyHelpToolsState extends State<KeyHelpTools> {
|
|||
inputModel.command;
|
||||
|
||||
if (!_pin && !hasModifierOn && !widget.requestShow) {
|
||||
gFFI.cursorModel.keyHelpToolsRect = null;
|
||||
gFFI.cursorModel.keyHelpToolsVisibilityChanged(null);
|
||||
return Offstage();
|
||||
}
|
||||
final size = MediaQuery.of(context).size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue