[apps/sequence][apps/graph] Switch to editing the function after event

'toolbox' or 'variables'

Change-Id: Iaa7b04871c4a74abf2ddcfc5905804448c7a44a4
This commit is contained in:
Émilie Feral
2017-05-31 10:22:39 +02:00
parent 211da258fa
commit f96a4556aa
3 changed files with 9 additions and 1 deletions

View File

@@ -222,7 +222,7 @@ bool ListController::handleEvent(Ion::Events::Event event) {
}
return true;
}
if ((event.hasText() || event == Ion::Events::XNT || event == Ion::Events::Paste)
if ((event.hasText() || event == Ion::Events::XNT || event == Ion::Events::Paste || event == Ion::Events::Toolbox || event == Ion::Events::Var)
&& selectedColumn() == 1
&& (selectedRow() != numberOfRows() - 1
|| m_functionStore->numberOfFunctions() == m_functionStore->maxNumberOfFunctions())) {