Show cursor in edit box when screen keyboard is opened
This commit is contained in:
parent
05b1dcb803
commit
71c5c3988c
@ -143,6 +143,9 @@ namespace GUIEngine
|
||||
|
||||
/** Returns height of the screen keyboard */
|
||||
int getHeight() {return m_area.getHeight();}
|
||||
|
||||
/** Returns assigned edit box */
|
||||
CGUIEditBox* getEditBox() {return m_edit_box;}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -964,8 +964,11 @@ void CGUIEditBox::draw()
|
||||
if (!IsVisible)
|
||||
return;
|
||||
|
||||
const bool focus = Environment->hasFocus(this);
|
||||
|
||||
GUIEngine::ScreenKeyboard* screen_kbd = GUIEngine::ScreenKeyboard::getCurrent();
|
||||
bool has_screen_kbd = (screen_kbd && screen_kbd->getEditBox() == this);
|
||||
|
||||
const bool focus = Environment->hasFocus(this) || has_screen_kbd;
|
||||
|
||||
IGUISkin* skin = Environment->getSkin();
|
||||
if (!skin)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user