| 1044 | } |
| 1045 | |
| 1046 | void InputManager::process_text_paste(const std::string& pasteStr, bool allowRichText) { |
| 1047 | CustomEvents::emit_event<CustomEvents::PasteEvent>({ |
| 1048 | .type = CustomEvents::PasteEvent::DataType::TEXT, |
| 1049 | .data = pasteStr, |
| 1050 | .richText = allowRichText && lastCopiedRichText.has_value() && lastCopiedRichText.value().get_plain_text() == remove_carriage_returns_from_str(pasteStr) ? lastCopiedRichText : std::nullopt |
| 1051 | }); |
| 1052 | } |
| 1053 | |
| 1054 | void InputManager::process_image_paste(std::string_view pasteData, const std::optional<Vector2f>& pastePos) { |
| 1055 | CustomEvents::emit_event<CustomEvents::PasteEvent>({ |
no test coverage detected