[SailfishDevel] Slilica.Clipboard
Thomas Tanghus
thomas at tanghus.net
Wed Dec 11 11:53:30 UTC 2019
On Tuesday, 10 December 2019 21.54 Thomas Tanghus wrote:
> I was playing a bit with the Clipboard module, just to see how it works,
>
> So: How can it be that it's triggered by Sailfish Connect and not any
> other apps?
Answering myself: The onTextChanged is only triggered when the app is in the
foreground, which in itself makes it impossible on a phone. Sailfish Connect
listens for network packages and injects into the clipboard, but the event
is only triggered when the app is in the foreground.
So basically the only way to monitor the clipboard is to poll it regularly?
I'm guessing this is old news for most; I just haven't tried to use it
before now :)
My idea was to make an app like the Plasma Klipper app, which I use all the
time:
https://docs.kde.org/stable5/en/kde-workspace/klipper/index.html
--
Med venlig hilsen / Best regards
Thomas Tanghus
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20191211/02992556/attachment.sig>
More information about the Devel
mailing list