[escher/modal_view_controller] didBecomeFirstResponder selects modal view if displayed

This commit is contained in:
Ruben Dashyan
2019-07-19 14:23:15 +02:00
committed by EmilieNumworks
parent eb6d697927
commit bc8b5af2e6

View File

@@ -136,7 +136,9 @@ void ModalViewController::dismissModalViewController() {
}
void ModalViewController::didBecomeFirstResponder() {
Container::activeApp()->setFirstResponder(m_regularViewController);
Container::activeApp()->setFirstResponder(
isDisplayingModal() ? m_currentModalViewController : m_regularViewController
);
}
bool ModalViewController::handleEvent(Ion::Events::Event event) {