Hi,
I need to force lost focus in a "EditText" control.
My APP is deployed on a device with hardware keyboard and there is an integrated scanner that I use with intent.
My goal is use special keys for activate scanner, capture data, and put into "EditText".
By "Activity_KeyPress", I receive "KeyCode" and manage needed functions (for example, concat number on a label, backspace key or enter key).
I have read some posts about it, but I don't solved my issue.
I'm using B4A v11.80 (64 bit).
When Activity is created, I load layout by "LoadLayout" and "EditText" don't have focus!
On same activity there is a menù and by an item of this, I can open another activity. When I close this last, "EditText" has focus!
For solve this, I tried to create another "EditText" off limit of layout: new problem was born, because enter key of keyboard hardware isn't captured in "Activity_KeyPress".
Another attempt was to disable and enable "EditText", but doesn't solves.
Do you have any idea for how force "lost focus"?
Thanks in advance.
Best regards,
Matteo
I need to force lost focus in a "EditText" control.
My APP is deployed on a device with hardware keyboard and there is an integrated scanner that I use with intent.
My goal is use special keys for activate scanner, capture data, and put into "EditText".
By "Activity_KeyPress", I receive "KeyCode" and manage needed functions (for example, concat number on a label, backspace key or enter key).
I have read some posts about it, but I don't solved my issue.
I'm using B4A v11.80 (64 bit).
When Activity is created, I load layout by "LoadLayout" and "EditText" don't have focus!
On same activity there is a menù and by an item of this, I can open another activity. When I close this last, "EditText" has focus!
For solve this, I tried to create another "EditText" off limit of layout: new problem was born, because enter key of keyboard hardware isn't captured in "Activity_KeyPress".
Another attempt was to disable and enable "EditText", but doesn't solves.
Do you have any idea for how force "lost focus"?
Thanks in advance.
Best regards,
Matteo