H Heinz Active Member Licensed User Longtime User Jul 30, 2023 #1 Requestfocus not always working. I have an USB-HID QR-code scanner. the scanner configuration is on an RETURN (CR) at the end of the line (output). in the sub B4X: EditText1_EnterPressed i read (EditText1.Text) the input and working with it. at the end of the SUB, (the editfield must be ready for the next scanner input) i write : B4X: B4X: EditText1.Text = "" EditText1.RequestFocus the Cursor is not always in the editfield and i must activate manuel the field. i want to have an automatic-input for the editfield. No keyboard is needed. Last edited: Jul 30, 2023
Requestfocus not always working. I have an USB-HID QR-code scanner. the scanner configuration is on an RETURN (CR) at the end of the line (output). in the sub B4X: EditText1_EnterPressed i read (EditText1.Text) the input and working with it. at the end of the SUB, (the editfield must be ready for the next scanner input) i write : B4X: B4X: EditText1.Text = "" EditText1.RequestFocus the Cursor is not always in the editfield and i must activate manuel the field. i want to have an automatic-input for the editfield. No keyboard is needed.
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2023 #2 Sounds like you need to use IME.AddHandleActionEvent: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content Upvote 0
Sounds like you need to use IME.AddHandleActionEvent: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content