hasSelection returns whether there is a selected region of text
()
| 866 | |
| 867 | // hasSelection returns whether there is a selected region of text |
| 868 | func (tf *TextField) hasSelection() bool { |
| 869 | tf.selectUpdate() |
| 870 | return tf.selectStart < tf.selectEnd |
| 871 | } |
| 872 | |
| 873 | // selection returns the currently selected text |
| 874 | func (tf *TextField) selection() string { |
no test coverage detected