This is only applicable on device. This needs to be discussed before it can be merged.
Current behaviour
Input text
Click outside of the node
The text you put in stays
gui.get_text returns the text
Click the node again
The text input gets cleared
I personally think that one of these two options is more intuitive
Expected behavior 1 (this PR)
Input text
Click outside of the node
The text input gets cleared
Expected behavior 2 (don't "mark text")
Input text
Click outside of the node
The text you put in stays
gui.get_text returns the text
Click the node again
The text you put in stays
I think it could be beneficial to use behavior 1 and have a option INPUT.set_auto_commit_text(input, commit) so the user can skip the "need to press enter" (which I personally would always use)
This is only applicable on device. This needs to be discussed before it can be merged.
Current behaviour
I personally think that one of these two options is more intuitive
Expected behavior 1 (this PR)
Expected behavior 2 (don't "mark text")
I think it could be beneficial to use behavior 1 and have a option
INPUT.set_auto_commit_text(input, commit)
so the user can skip the "need to press enter" (which I personally would always use)