mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Added love.keyboard.setTextInput to enable/disable text input events (enabled by default.)
This fixes the issue of receiving an unwanted text input event if a key is used to bring a game's textbox into focus, since textinput events can be triggered after keypress events if the keypress generates text.
This commit is contained in:
@@ -51,6 +51,9 @@ public:
|
||||
bool hasKeyRepeat() const;
|
||||
bool isDown(Key *keylist) const;
|
||||
|
||||
void setTextInput(bool enable);
|
||||
bool hasTextInput() const;
|
||||
|
||||
private:
|
||||
|
||||
bool key_repeat;
|
||||
|
||||
Reference in New Issue
Block a user