-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clipboard support? #295
Comments
Currently, we only support pasting (i.e. reading) from a I started a |
Does this require the application using Iced to handle the clipboard itself, or can I somehow have a text field inherently support pasting (via the usual keyboard shortcuts)?
Any rough estimate?
👍 |
This should already work since #132.
Once we figure out a nice, cross-platform API for writing to the clipboard. |
@hecrj What if a custom
pub enum Error {
UnsupportedOperation,
}
pub trait Clipboard {
fn content(&self) -> Option<String>;
fn write(&mut self, text: &str) -> Result<(), Error>;
} iced_winit could just return For non-string types, perhaps a separate |
@hecrj nice update! Not sure if related, but if the cursor is on the right and I try to move cursor to the left, it tries to select from the cursor position or something E.g if input content is: Screen.Recording.2021-03-10.at.23.21.59.mov |
I'm on Linux/X11, and clipboard support seems non-existent. Would definitely be great to have this.
I found this issue: #36, but it only seems to concern selecting text (which seems to work for me in Iced 0.1), not copying and pasting.
Is anyone working on this? I might take it on if not.
The text was updated successfully, but these errors were encountered: