@@ -246,7 +246,7 @@ CGUIEditBox::~CGUIEditBox()
246246 DestroyCaret ();
247247#endif
248248 if (GUIEngine::ScreenKeyboard::shouldUseScreenKeyboard () &&
249- irr_driver-> getDevice ()-> hasOnScreenKeyboard ())
249+ GUIEngine::ScreenKeyboard::hasSystemScreenKeyboard ())
250250 irr_driver->getDevice ()->toggleOnScreenKeyboard (false );
251251
252252#endif
@@ -381,7 +381,7 @@ bool CGUIEditBox::OnEvent(const SEvent& event)
381381 calculateScrollPos ();
382382#ifdef ANDROID
383383 if (GUIEngine::ScreenKeyboard::shouldUseScreenKeyboard () &&
384- irr_driver-> getDevice ()-> hasOnScreenKeyboard () &&
384+ GUIEngine::ScreenKeyboard::hasSystemScreenKeyboard () &&
385385 irr_driver->getDevice ()->getType () == irr::EIDT_ANDROID)
386386 {
387387 // If user toggle with hacker keyboard with arrows, keep
@@ -675,7 +675,7 @@ bool CGUIEditBox::processKey(const SEvent& event)
675675 case IRR_KEY_RETURN:
676676 {
677677 if (GUIEngine::ScreenKeyboard::shouldUseScreenKeyboard () &&
678- irr_driver-> getDevice ()-> hasOnScreenKeyboard ())
678+ GUIEngine::ScreenKeyboard::hasSystemScreenKeyboard ())
679679 irr_driver->getDevice ()->toggleOnScreenKeyboard (false );
680680 sendGuiEvent ( EGET_EDITBOX_ENTER );
681681 }
@@ -1021,7 +1021,7 @@ void CGUIEditBox::setText(const core::stringw& text)
10211021 calculateScrollPos ();
10221022#ifdef ANDROID
10231023 if (GUIEngine::ScreenKeyboard::shouldUseScreenKeyboard () &&
1024- irr_driver-> getDevice ()-> hasOnScreenKeyboard () &&
1024+ GUIEngine::ScreenKeyboard::hasSystemScreenKeyboard () &&
10251025 irr_driver->getDevice ()->getType () == irr::EIDT_ANDROID)
10261026 {
10271027 CIrrDeviceAndroid* dl = dynamic_cast <CIrrDeviceAndroid*>(
@@ -1144,7 +1144,7 @@ bool CGUIEditBox::processMouse(const SEvent& event)
11441144
11451145 if (GUIEngine::ScreenKeyboard::shouldUseScreenKeyboard ())
11461146 {
1147- if (irr_driver-> getDevice ()-> hasOnScreenKeyboard ())
1147+ if (GUIEngine::ScreenKeyboard::hasSystemScreenKeyboard ())
11481148 irr_driver->getDevice ()->toggleOnScreenKeyboard (true , m_type);
11491149 else
11501150 openScreenKeyboard ();
@@ -1413,7 +1413,7 @@ void CGUIEditBox::setTextMarkers(s32 begin, s32 end)
14131413 sendGuiEvent (EGET_EDITBOX_MARKING_CHANGED);
14141414#ifdef ANDROID
14151415 if (GUIEngine::ScreenKeyboard::shouldUseScreenKeyboard () &&
1416- irr_driver-> getDevice ()-> hasOnScreenKeyboard () &&
1416+ GUIEngine::ScreenKeyboard::hasSystemScreenKeyboard () &&
14171417 irr_driver->getDevice ()->getType () == irr::EIDT_ANDROID)
14181418 {
14191419 CIrrDeviceAndroid* dl = dynamic_cast <CIrrDeviceAndroid*>(
@@ -1485,7 +1485,7 @@ void CGUIEditBox::deserializeAttributes(io::IAttributes* in, io::SAttributeReadW
14851485void CGUIEditBox::openScreenKeyboard ()
14861486{
14871487 // If the device has native on screen keyboard, always use it
1488- if (irr_driver-> getDevice ()-> hasOnScreenKeyboard ())
1488+ if (GUIEngine::ScreenKeyboard::hasSystemScreenKeyboard ())
14891489 return ;
14901490
14911491 if (GUIEngine::ScreenKeyboard::getCurrent () != NULL )
0 commit comments