[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convenient way to parse Enter on a textbox?


23.09.2025 19:26, Gianluigi пишет:
Il 23/09/25 12:10, Admin ha scritto:
In general, yes, this must work, but when a button also has "wait" operators, they fail, and it's not a bug, it's a feature, it is explained in a error text in a debug window.


Thanks for the explanation, but I don't understand how you can get around the problem using Button.Default, without Bruce's suggestion.

Regards
Gianluigi




Hmm, well, the code is already in production, all I did was setting SendButton.Default to true, and now when the focus is on a textbox which i fill with the request, Enter key just presses SendButton, no Keypress event handler on any form element whatsoever. I couldn't be happier with the simplicity of this solution.


Dmitry


Follow-Ups:
Re: Convenient way to parse Enter on a textbox?Gianluigi <gradobag@xxxxxxxxxxx>
References:
Convenient way to parse Enter on a textbox?Admin <admin@xxxxxxxxxx>
Re: Convenient way to parse Enter on a textbox?Gianluigi <gradobag@xxxxxxxxxxx>
Re: Convenient way to parse Enter on a textbox?Admin <admin@xxxxxxxxxx>
Re: Convenient way to parse Enter on a textbox?Gianluigi <gradobag@xxxxxxxxxxx>