I want to prevent the soft keyboard from popping up while using a physical keyboard in Android app.
I have tried inputmanager
val inputMethodManager: InputMethodManager = context?.getSystemService(
AppCompatActivity.INPUT_METHOD_SERVICE
) as InputMethodManager
inputMethodManager.showInputMethodPicker()
and also used this
editText.showSoftInputOnFocus = false
but the soft keyboard still popups when I start typing on the physical keyboard.