Fix missing general text field dialog enter callback in android
This commit is contained in:
parent
f2b774d63a
commit
12167aeafb
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user