Skip to content

Commit 5685db9

Browse files
committed
closeKeyboard() method for EditBox
1 parent 0800903 commit 5685db9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

core/ui/UIEditBox/UIEditBox.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ void EditBox::openKeyboard() const
5656
_editBoxImpl->openKeyboard();
5757
}
5858

59+
void EditBox::closeKeyboard() const
60+
{
61+
_editBoxImpl->closeKeyboard();
62+
}
63+
5964
EditBox* EditBox::create(const Vec2& size, std::string_view normalImage, TextureResType texType)
6065
{
6166
return EditBox::create(size, normalImage, "", "", texType);

core/ui/UIEditBox/UIEditBox.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ class AX_GUI_DLL EditBox : public Widget, public IMEDelegate
650650
void setGlobalZOrder(float globalZOrder) override;
651651

652652
void openKeyboard() const;
653+
void closeKeyboard() const;
653654

654655
protected:
655656
virtual void releaseUpEvent() override;

0 commit comments

Comments
 (0)