secure paste: add Paste actions to LatinIME - #41
Open
inthewaves wants to merge 1 commit into
Open
Conversation
Some apps do not expose a toolbar Paste action compatible with secure paste. Apps built with Flutter are a common example: Flutter renders its own selection toolbar, and its Paste button asks the Flutter engine to read the clipboard directly instead of dispatching Android's standard editor Paste action. Without that trusted Paste event, secure paste blocks the read when the app is set to Paste only. Add Paste to LatinIME so users can authorize the focused app directly from the keyboard. Preferably when this AOSP clipboard gets replaced in the future by another IME app, it should also implement paste actions. Automatically offer a Paste chip for a clip set less than two minutes ago when the editor is empty or no candidates are visible. When candidates take priority or the clip is older, show a clipboard button that opens the chip on demand. The age limit is intentionally applied lazily without an expiry timer. Editing, receiving new candidates, changing focus, or closing the temporary mode returns the strip to its normal state. LatinIME never reads or displays clipboard contents. Password fields can therefore use the same generic Paste chip as other editors. The chip dispatches Android's standard Paste action. The focused app reads and handles the clip, preserving generic Paste support for text, images, and other content. Remember only the platform timestamp for the last clip dispatched through the chip so the same clip is not repeatedly advertised across focus or process changes. Enable the feature by default, provide a preference to disable it, and let editors opt out for individual fields.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some apps do not expose a toolbar Paste action compatible with secure paste. Apps built with Flutter are a common example: Flutter renders its own selection toolbar, and its Paste button asks the Flutter engine to read the clipboard directly instead of dispatching Android's standard editor Paste action. Without that trusted Paste event, secure paste blocks the read when the app is set to Paste only.
Add Paste to LatinIME so users can authorize the focused app directly from the keyboard. Preferably when this AOSP clipboard gets replaced in the future by another IME app, it should also implement paste actions.
Automatically offer a Paste chip for a clip set less than two minutes ago when the editor is empty or no candidates are visible. When candidates take priority or the clip is older, show a clipboard button that opens the chip on demand. The age limit is intentionally applied lazily without an expiry timer. Editing, receiving new candidates, changing focus, or closing the temporary mode returns the strip to its normal state. LatinIME never reads or displays clipboard contents. Password fields can therefore use the same generic Paste chip as other editors.
The chip dispatches Android's standard Paste action. The focused app reads and handles the clip, preserving generic Paste support for text, images, and other content. Remember only the platform timestamp for the last clip dispatched through the chip so the same clip is not repeatedly advertised across focus or process changes.
Enable the feature by default, provide a preference to disable it, and let editors opt out for individual fields.