Rename HTextArea.append() → .insertAtCursor()

This commit is contained in:
miruka 2020-05-29 17:20:40 -04:00
parent 877290fc00
commit 8b9681dc78
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ TextArea {
function reset() { clear(); text = defaultText }
function append(text) { insert(cursorPosition, text) }
function insertAtCursor(text) { insert(cursorPosition, text) }
text: defaultText

View File

@ -75,7 +75,7 @@ HTextArea {
}
const add = indent.repeat(indents)
textArea.append("\n" + add)
textArea.insertAtCursor("\n" + add)
}
function sendText() {
@ -176,7 +176,7 @@ HTextArea {
Keys.onTabPressed: ev => {
ev.accepted = true
textArea.append(indent)
textArea.insertAtCursor(indent)
}
Keys.onPressed: ev => {