Fix screen keyboard always open first in create server screen
This commit is contained in:
parent
f4233977e5
commit
4d7fd73543
@ -116,8 +116,21 @@ void CreateServerScreen::init()
|
|||||||
assert(gamemode != NULL);
|
assert(gamemode != NULL);
|
||||||
gamemode->setSelection(m_prev_mode, PLAYER_ID_GAME_MASTER);
|
gamemode->setSelection(m_prev_mode, PLAYER_ID_GAME_MASTER);
|
||||||
updateMoreOption(m_prev_mode);
|
updateMoreOption(m_prev_mode);
|
||||||
|
#ifdef MOBILE_STK
|
||||||
|
m_name_widget->setFocusable(true);
|
||||||
|
#endif
|
||||||
} // init
|
} // init
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
void CreateServerScreen::beforeAddingWidget()
|
||||||
|
{
|
||||||
|
#ifdef MOBILE_STK
|
||||||
|
// This will prevent name text box being focused first which make screen
|
||||||
|
// keyboard always open
|
||||||
|
m_name_widget->setFocusable(false);
|
||||||
|
#endif
|
||||||
|
} // beforeAddingWidget
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/** Event callback which starts the server creation process.
|
/** Event callback which starts the server creation process.
|
||||||
*/
|
*/
|
||||||
|
@ -62,6 +62,9 @@ public:
|
|||||||
/** \brief implement callback from parent class GUIEngine::Screen */
|
/** \brief implement callback from parent class GUIEngine::Screen */
|
||||||
virtual void loadedFromFile() OVERRIDE;
|
virtual void loadedFromFile() OVERRIDE;
|
||||||
|
|
||||||
|
/** \brief implement callback from parent class GUIEngine::Screen */
|
||||||
|
virtual void beforeAddingWidget() OVERRIDE;
|
||||||
|
|
||||||
/** \brief implement callback from parent class GUIEngine::Screen */
|
/** \brief implement callback from parent class GUIEngine::Screen */
|
||||||
virtual void eventCallback(GUIEngine::Widget* widget, const std::string& name,
|
virtual void eventCallback(GUIEngine::Widget* widget, const std::string& name,
|
||||||
const int playerID) OVERRIDE;
|
const int playerID) OVERRIDE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user