diff options
author | Christian Duerr <contact@christianduerr.com> | 2023-02-27 08:30:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 10:30:39 +0300 |
commit | bf5874805576804ab9ae82949624b1122c3015db (patch) | |
tree | ba49ece584e6404a9303f7fb17bb38e6c1e56707 /alacritty/src | |
parent | f01dea8643e2956d2480ee12c3e5ee960944a49d (diff) | |
download | r-alacritty-bf5874805576804ab9ae82949624b1122c3015db.tar.gz r-alacritty-bf5874805576804ab9ae82949624b1122c3015db.tar.bz2 r-alacritty-bf5874805576804ab9ae82949624b1122c3015db.zip |
Send D&D input through paste action
Treating D&D like paste allows using D&D to input text into areas other
than the PTY, like the search bar.
Diffstat (limited to 'alacritty/src')
-rw-r--r-- | alacritty/src/event.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index 3ecca5e8..02309188 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -1320,7 +1320,7 @@ impl input::Processor<EventProxy, ActionContext<'_, Notifier, EventProxy>> { }, WindowEvent::DroppedFile(path) => { let path: String = path.to_string_lossy().into(); - self.ctx.write_to_pty((path + " ").into_bytes()); + self.ctx.paste(&(path + " ")); }, WindowEvent::CursorLeft { .. } => { self.ctx.mouse.inside_text_area = false; |