Numeric Text Field Focus

Is there a way to lose focus on a numeric text field? I tried to click on the container adjacent to the component or the screen but the focus remains in the last numeric test field that was clicked. Also, sometime’s when selecting another text field a vertical line remains in and is blinking in the text field that lost focus.

There is no way to make a component lose focus. Instead what you can do is move focus to another component by using that components’ requestFocus() method.

If you want to set focus on something like a container, you can call setFocusable(1) in order to make it focusable. You can then use requestFocus() to focus on the container, making the screen look as if nothing is focused.

1 Like