mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] Fixed Script edition cursor bugs.
The scroll is now reloaded when text is inserted or a new line is entered. When opening a script, the cursor moves to the end of the script. Change-Id: I027ea80db485916fc3fc962cfa9e032ca0bbc81e
This commit is contained in:
@@ -29,6 +29,10 @@ void EditorController::didBecomeFirstResponder() {
|
||||
app()->setFirstResponder(&m_textArea);
|
||||
}
|
||||
|
||||
void EditorController::viewWillAppear() {
|
||||
m_textArea.moveCursor(strlen(m_textArea.text() - m_textArea.cursorLocation()));
|
||||
}
|
||||
|
||||
void EditorController::viewDidDisappear() {
|
||||
m_scriptParameterController->scriptContentEditionDidFinish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user