Add edit shortcuts and fix some focus stuff
This commit is contained in:
parent
9b7d33e847
commit
6e2ae1d812
5 changed files with 30 additions and 7 deletions
|
|
@ -139,6 +139,7 @@ Rectangle {
|
|||
if (TimelineManager.timeline)
|
||||
TimelineManager.timeline.input.updateState(selectionStart, selectionEnd, cursorPosition, text);
|
||||
|
||||
forceActiveFocus();
|
||||
}
|
||||
onCursorRectangleChanged: textInput.ensureVisible(cursorRectangle)
|
||||
onCursorPositionChanged: {
|
||||
|
|
@ -260,7 +261,9 @@ Rectangle {
|
|||
|
||||
Connections {
|
||||
ignoreUnknownSignals: true
|
||||
onInsertText: messageInput.insert(messageInput.cursorPosition, text)
|
||||
onInsertText: {
|
||||
messageInput.insert(messageInput.cursorPosition, text);
|
||||
}
|
||||
onTextChanged: {
|
||||
messageInput.text = newText;
|
||||
messageInput.cursorPosition = newText.length;
|
||||
|
|
@ -271,6 +274,7 @@ Rectangle {
|
|||
Connections {
|
||||
ignoreUnknownSignals: true
|
||||
onReplyChanged: messageInput.forceActiveFocus()
|
||||
onEditChanged: messageInput.forceActiveFocus()
|
||||
target: TimelineManager.timeline
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue