Fix missing general text field dialog enter callback in android

This commit is contained in:
Benau 2020-07-17 19:12:00 +08:00
parent f2b774d63a
commit 12167aeafb
2 changed files with 6 additions and 1 deletions

View File

@ -140,6 +140,7 @@ namespace GUIEngine
virtual void setComposingText(const std::u32string& ct) { m_composing_text = ct; }
virtual void clearComposingText() { m_composing_text.clear(); }
virtual const core::position2di& getICPos() const { return m_ic_pos; }
void sendGuiEvent(EGUI_EVENT_TYPE type);
protected:
//! sets the area of the given line
void setTextRect(s32 line);
@ -148,7 +149,6 @@ namespace GUIEngine
//! calculates the current scroll position
void calculateScrollPos();
//! send some gui event to parent
void sendGuiEvent(EGUI_EVENT_TYPE type);
//! set text markers
void setTextMarkers(s32 begin, s32 end);
void updateCursorDistance();

View File

@ -372,6 +372,11 @@ ANDROID_HANDLE_ACTION_NEXT_CALLBACK(ANDROID_PACKAGE_CALLBACK_NAME)
}
return;
}
else
{
// Required for some general text field dialog
eb->sendGuiEvent(EGET_EDITBOX_ENTER);
}
// As it's action "next", check if below widget is a text box, if
// so focus it and keep the screen keyboard, so user can keep