Rename HTextArea.append() → .insertAtCursor()
This commit is contained in:
@@ -20,7 +20,7 @@ TextArea {
|
||||
|
||||
|
||||
function reset() { clear(); text = defaultText }
|
||||
function append(text) { insert(cursorPosition, text) }
|
||||
function insertAtCursor(text) { insert(cursorPosition, text) }
|
||||
|
||||
|
||||
text: defaultText
|
||||
|
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user