mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00
Add set-selection-offsets
function to TextInput, TextEdit, and LineEdit (#4197)
The function accepts two arguments that specify the start and the end of the text to select. Fixes #4164
This commit is contained in:
parent
ed54581aa1
commit
3e8940660b
23 changed files with 233 additions and 1 deletions
|
@ -19,6 +19,7 @@ shortcut will be implemented in a future version: <https://github.com/slint-ui/s
|
|||
### Functions
|
||||
|
||||
- **`focus()`** Call this function to focus the TextEdit and make it receive future keyboard events.
|
||||
- **`set-selection-offsets(int, int)`** Selects the text between two UTF-8 offsets.
|
||||
- **`select-all()`** Selects all text.
|
||||
- **`clear-selection()`** Clears the selection.
|
||||
- **`copy()`** Copies the selected text to the clipboard.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue