B4X FEED Problem with focus on EditText

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Problem with focus on EditText است. این موضوع تا کنون 23 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Problem with focus on EditText
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
23
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
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...



 

عقب
بالا