selectAll selects all the text
()
| 917 | |
| 918 | // selectAll selects all the text |
| 919 | func (tf *TextField) selectAll() { |
| 920 | tf.selectStart = 0 |
| 921 | tf.selectInit = 0 |
| 922 | tf.selectEnd = len(tf.editText) |
| 923 | if TheApp.SystemPlatform().IsMobile() { |
| 924 | tf.Send(events.ContextMenu) |
| 925 | } |
| 926 | tf.NeedsRender() |
| 927 | } |
| 928 | |
| 929 | // isWordBreak defines what counts as a word break for the purposes of selecting words |
| 930 | func (tf *TextField) isWordBreak(r rune) bool { |
no test coverage detected