Send clipboard keystroke, https://github.com/rustdesk/rustdesk/discussions/5451
This commit is contained in:
parent
baf70da2fe
commit
bbdce8d57b
45 changed files with 677 additions and 641 deletions
|
|
@ -130,12 +130,9 @@ List<TTextMenu> toolbarControls(BuildContext context, String id, FFI ffi) {
|
|||
);
|
||||
}
|
||||
// paste
|
||||
if (isMobile &&
|
||||
pi.platform != kPeerPlatformAndroid &&
|
||||
perms['keyboard'] != false &&
|
||||
perms['clipboard'] != false) {
|
||||
if (pi.platform != kPeerPlatformAndroid && perms['keyboard'] != false) {
|
||||
v.add(TTextMenu(
|
||||
child: Text(translate('Paste')),
|
||||
child: Text(translate('Send clipboard keystrokes')),
|
||||
onPressed: () async {
|
||||
ClipboardData? data = await Clipboard.getData(Clipboard.kTextPlain);
|
||||
if (data != null && data.text != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue