Make the soft and hard keyboard mutually exclusive

This commit is contained in:
SerpentSpirale 2021-08-07 11:52:26 +02:00 committed by ArtDev
parent e74fb95f98
commit 4de7413c0f

View file

@ -891,7 +891,9 @@ public class BaseMainActivity extends LoggableActivity {
* of the current TouchCharInput
*/
public void switchKeyboardState(){
if(touchCharInput.hasFocus()){
//If an hard keyboard is present, never trigger the soft one
if(touchCharInput.hasFocus()
|| getResources().getConfiguration().keyboard == Configuration.KEYBOARD_QWERTY){
touchCharInput.clear();
touchCharInput.disable();