futo-org / android-keyboard

Offical FUTO Keyboard Issue Tracker and Source Mirror of https://gitlab.futo.org/keyboard/latinime
Other
729 stars 24 forks source link

Private Internal Clipboard Functionality #645

Open issuant opened 3 weeks ago

issuant commented 3 weeks ago

Use Cases

Many times, you want to copy something but not expose it to the system, and therefore other apps. Think of passwords, 2FA codes, links and text between tabs in incognito mode and private chats apps, etc. Unfortunately, both on Pixels and especially Samsungs, the standard copy action is always doubly copied to the system keyboard. This can be a real problem if you unintentionally tab into some other app that automatically reads the system clipboard, often banking apps in my experience.

Florisboard has this fantastic feature that allows you to keep copies made with its copy action private to the keyboard itself without syncing it to the system clipboard but, smartly, still allows you to sync from the system to this internal keyboard.

Proposal

As a baseline, a replica of Florisboard's Clipboard settings. With this, there would a toggle to choose to use a private, FUTOBoard-only clipboard and also options to, separately, sync the system clipboard to and from this private clipboard.

Tapping the incognito mode action toggle (when implemented) should also toggle the state of the private clipboard. If the private clipboard had already been turned on separately, toggling off incognito mode should only toggle off private copying temporarily, for only the next copy.

The icon for the copy action in the action bar should have an incognito mode style icon to indicate when the private clipboard mode is active. For this, the current icon should ideally be redesigned and made bigger to be more in line with the clipboard and paste icons, and also other keyboards (Florisboard included). It looks too much like a mirrored maximize icon currently.

References

dean-futo commented 3 days ago

Duplicate of #650 - merged that request into this one.