Fixed a crash after closing screen keyboard when dialog window is active.
Also fixed using screen keyboard with gamepad when it's used in dialog window.
This commit is contained in:
parent
a05889fa6a
commit
575f44a043
@ -404,16 +404,22 @@ void EventHandler::sendNavigationEvent(const NavigationDirection nav, const int
|
||||
{
|
||||
Widget* w = GUIEngine::getFocusForPlayer(playerID);
|
||||
|
||||
if (ScreenKeyboard::isActive() &&
|
||||
!ScreenKeyboard::getCurrent()->isMyIrrChild(w->getIrrlichtElement()))
|
||||
if (w != NULL)
|
||||
{
|
||||
w = NULL;
|
||||
}
|
||||
|
||||
if (ModalDialog::isADialogActive() &&
|
||||
!ModalDialog::getCurrent()->isMyIrrChild(w->getIrrlichtElement()))
|
||||
{
|
||||
w = NULL;
|
||||
if (ScreenKeyboard::isActive())
|
||||
{
|
||||
if (!ScreenKeyboard::getCurrent()->isMyIrrChild(w->getIrrlichtElement()))
|
||||
{
|
||||
w = NULL;
|
||||
}
|
||||
}
|
||||
else if (ModalDialog::isADialogActive())
|
||||
{
|
||||
if (!ModalDialog::getCurrent()->isMyIrrChild(w->getIrrlichtElement()))
|
||||
{
|
||||
w = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (w == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user