mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Split Event::Text into Text and Paste (#1058)
* Split `Event::Text` into `Text` and `Paste` * Added explicit Event::Paste change See #1043 * Link to PR in changelog (not the issue) Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -484,7 +484,7 @@ impl State {
|
||||
if let Some(contents) = self.clipboard.get() {
|
||||
self.egui_input
|
||||
.events
|
||||
.push(egui::Event::Text(contents.replace("\r\n", "\n")));
|
||||
.push(egui::Event::Paste(contents.replace("\r\n", "\n")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user