deleteBeforeCursor deletes all text before the cursor. Returns whether or not the cursor blink should be reset.
()
| 390 | // deleteBeforeCursor deletes all text before the cursor. Returns whether or |
| 391 | // not the cursor blink should be reset. |
| 392 | func (m *TextInputModel) deleteBeforeCursor() bool { |
| 393 | m.value = m.value[m.pos:] |
| 394 | m.Offset = 0 |
| 395 | return m.setCursor(0) |
| 396 | } |
| 397 | |
| 398 | // deleteAfterCursor deletes all text after the cursor. Returns whether or not |
| 399 | // the cursor blink should be reset. If input is masked delete everything after |
no test coverage detected