How force lose focus on a EditText ?

Ramirez

Member
Licensed User
Longtime User
Hello.
I want to select all the text of an edittext, but that work for the first time only. After Enter press, the keyboard disapear but the edittext keep focus.
So is it possible to force the lose of the focus ?

B4X:
Sub edTxtQte_FocusChanged (HasFocus As Boolean)
   edTxtQte.SelectAll
End Sub

Sub edTxtQte_EnterPressed
   If edTxtQte.Text="" Then
      edTxtQte.Text=1
   End If
   ...
End Sub

thx
 
Top