| 246 | } |
| 247 | |
| 248 | std::pair<std::string, TextData> TextBox::process_cut(Cursor& cur) { |
| 249 | auto toRet = process_copy(cur); |
| 250 | if(cur.selectionBeginPos != cur.selectionEndPos) { |
| 251 | cur.selectionEndPos = cur.selectionBeginPos = cur.pos = remove(cur.selectionBeginPos, cur.selectionEndPos); |
| 252 | cur.previousX = std::nullopt; |
| 253 | } |
| 254 | return toRet; |
| 255 | } |
| 256 | |
| 257 | void TextBox::process_text_input(Cursor& cur, const std::string& in, const std::optional<TextStyleModifier::ModifierMap>& inputModMap) { |
| 258 | if(!in.empty()) { |
no outgoing calls
no test coverage detected