When is Key_Press event emitted?
Posted: Thu Nov 19, 2020 5:00 pm
Hi,
My module needs to process text entered by the user, so I have code for the case Key_Press event as follows:
with a breakpoint set on the test after handling 'object'. I expected this to fire for every keypress. However, it only reaches the test when an enter key is pressed. When is the event supposed to fire? I don't see anything in the documentation...
Thanks in advance,
Frank
My module needs to process text entered by the user, so I have code for the case Key_Press event as follows:
Code: Select all
if (object instanceof VoltageKeyPressInfo)
{
VoltageKeyPressInfo kpi = (VoltageKeyPressInfo) object;
if ((kpi.IsEnterKey()) || (kpi.IsTabKey())) // breakpoint here
{
String tVal = editableTestNote1.GetText();j
//...
}
}
Thanks in advance,
Frank