iOS: Remove assert when transferring or clearing first-responder
We'd transfer or clear first-responder in a lot more cases than just when transferring to a new Qt window, such as when presenting a new view-controller on top to send an e-mail or take a picture using the camera. Change-Id: I6b2a8a6d9fd99910b96a86cf9847b7ff0128f20a Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>bb10
parent
91e53a7b9c
commit
8ea5b2852e
|
|
@ -268,8 +268,11 @@
|
|||
qImDebug() << "keyboard was closed, clearing focus object";
|
||||
m_inputContext->clearCurrentFocusObject();
|
||||
} else {
|
||||
// We've lost responder status because another window was made active
|
||||
Q_ASSERT(FirstResponderCandidate::currentCandidate());
|
||||
// We've lost responder status because another Qt window was made active,
|
||||
// another QIOSTextResponder was made first-responder, another UIView was
|
||||
// made first-responder, or the first-responder was cleared globally. In
|
||||
// either of these cases we don't have to do anything.
|
||||
qImDebug() << "lost first responder, but not clearing focus object";
|
||||
}
|
||||
|
||||
return YES;
|
||||
|
|
|
|||
Loading…
Reference in New Issue