Merge pull request #2051 from vitorpamplona/claude/fix-quote-cursor-position-QOw9L
Fix quote placement to begin at start of message
This commit is contained in:
+7
@@ -25,6 +25,13 @@ import androidx.compose.ui.text.TextRange
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
|
||||
fun TextFieldState.setTextAndPlaceCursorAtBeginning(text: String) {
|
||||
edit {
|
||||
replace(0, length, text)
|
||||
selection = TextRange(0, 0)
|
||||
}
|
||||
}
|
||||
|
||||
fun TextFieldState.insertUrlAtCursor(url: String) {
|
||||
edit {
|
||||
var toInsert = url.trim()
|
||||
|
||||
Reference in New Issue
Block a user