Basically the title, I’m working with an input field and the Submit action is called when enter is pressed, thanks to the checkbox setting on it. However, I would really like it to not call Submit a second time when the user then clicks on something else
Is this possible?
Ideally: hitting enter would cause the inputfield to lose focus (i tried to do this, but it caused a loop)
EDIT: looks like this might have gotten fixed in the latest GUI beta
I want the solution to this question too. I only want to fire off an event when “Enter” is pressed. I don’t want to do anything when InputField is loosing focus. Can anyone tell me how I can distinguish between these two with EndEdit event?
you’ll need to create your own class derived from InputField and override both KeyPressed (to send the event when enter is pressed) and DeactivateInputField to not send the event.
or just override KeyPressed and send a different event instead of the submit event and dont listen for submit.
I don’t think that creating a class derived from InputField and overriding those two methods would work since DeactivateInputField is not marked as virtual and KeyPressed is just protected…