[escher] focus -> firstResponder

Change-Id: I2e84afe6f14abfc65e45814300e8db9703840337
This commit is contained in:
Romain Goyet
2016-09-15 15:56:54 +02:00
parent e90aafe505
commit 8f9d9d0b0b
15 changed files with 74 additions and 37 deletions

View File

@@ -97,7 +97,12 @@ void StackViewController::setupActiveViewController() {
ViewController * vc = m_children[m_numberOfChildren-1];
vc->setParentResponder(this);
m_view.setContentView(vc->view());
app()->focus(vc);
app()->setFirstResponder(vc);
}
void StackViewController::didBecomeFirstResponder() {
ViewController * vc = m_children[m_numberOfChildren-1];
app()->setFirstResponder(vc);
}
bool StackViewController::handleEvent(Ion::Events::Event event) {