From bf5874805576804ab9ae82949624b1122c3015db Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Mon, 27 Feb 2023 08:30:39 +0100 Subject: 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. --- alacritty/src/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty/src') 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> { }, 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; -- cgit