mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make edit boxes respond to string input (IME) (#11156)
Make edit boxes respond to string input events (introduced in minetest/irrlicht#23) that are usually triggered by entering text with an IME.
This commit is contained in:
parent
2332527765
commit
85163b531f
4 changed files with 51 additions and 27 deletions
|
@ -138,6 +138,8 @@ public:
|
|||
virtual void deserializeAttributes(
|
||||
io::IAttributes *in, io::SAttributeReadWriteOptions *options);
|
||||
|
||||
virtual bool acceptsIME() { return isEnabled() && m_writable; };
|
||||
|
||||
protected:
|
||||
virtual void breakText() = 0;
|
||||
|
||||
|
@ -156,6 +158,7 @@ protected:
|
|||
virtual s32 getCursorPos(s32 x, s32 y) = 0;
|
||||
|
||||
bool processKey(const SEvent &event);
|
||||
virtual void inputString(const core::stringw &str);
|
||||
virtual void inputChar(wchar_t c);
|
||||
|
||||
//! returns the line number that the cursor is on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue