mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps][escher] Add methods 'handleEventWithText' in TextField and
TextArea to fix bug in probability (adding a toolbox text from the calculations controller)
This commit is contained in:
committed by
EmilieNumworks
parent
7fcf77ce23
commit
576caa039f
@@ -52,10 +52,7 @@ void ConsoleEditCell::setPrompt(const char * prompt) {
|
||||
}
|
||||
|
||||
bool ConsoleEditCell::insertText(const char * text) {
|
||||
bool didCopy = m_textField.insertTextAtLocation(text, m_textField.cursorLocation());
|
||||
if (didCopy) {
|
||||
m_textField.setCursorLocation(m_textField.cursorLocation() + strlen(text));
|
||||
}
|
||||
return didCopy;
|
||||
}
|
||||
return m_textField.handleEventWithText(text);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user