F fatman Active Member Licensed User Longtime User Jun 20, 2017 #1 Hi Folks, I have several edittexts which are filled by a scanner. Obviously the scanner delivers a CRLF which shifts the focus to the next edittext. Is it possible to change that behaviour? I tested the masked edit lib by Informatix but the focus is still shifting... Any ideas/hints are welcome. Fatman
Hi Folks, I have several edittexts which are filled by a scanner. Obviously the scanner delivers a CRLF which shifts the focus to the next edittext. Is it possible to change that behaviour? I tested the masked edit lib by Informatix but the focus is still shifting... Any ideas/hints are welcome. Fatman
DonManfred Expert Licensed User Longtime User Jun 20, 2017 #2 Usually such scanners can be configured to behave like this (or even not). Change config. Alternatively you can set a key listener to your editexts. If enter pressed then return false in the listener to consume the event... Upvote 0
Usually such scanners can be configured to behave like this (or even not). Change config. Alternatively you can set a key listener to your editexts. If enter pressed then return false in the listener to consume the event...
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2017 #3 Set EditText.ForceDone to True. This way the focus will not be shifted automatically. Another option is to handle the action button with the IME library: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content It allows you to consume the action event. Upvote 0
Set EditText.ForceDone to True. This way the focus will not be shifted automatically. Another option is to handle the action button with the IME library: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content It allows you to consume the action event.
F fatman Active Member Licensed User Longtime User Jun 20, 2017 #4 Thank you Don Manfred and Erel! I will have a closer look at the IME library. Thx again! Upvote 0