Text Edit : Input mode "none" still shows keyboard on Android

Hello Appfarm

i’m trying to hide a text input and use it for scanning in Appfarm (needs to be in autofocus).
if my memory is good , i do recall that input mode “none” was preventing the app of triggering virtual keyboard on Android.

looks like this is not the case anymore since the keyboard is still triggered. is there any way to handle this ? or any other solution/workaround ?

Thanks

Hi Yassine,

Is it possible to only show the Text Edit after the item is scanned? See the below screen recording for an example of a use case. In this case we scan the barcode, map it to the App Variable and then navigate to the section where the Text Edit is shown after the scan is complete. Would this work in your case?

Rhys

Hey Rhys,

Really sorry for the late reply!

For me, it’s not a camera-based scan. I’m using a scanner/gun integrated into the phone that scans the information directly.

This is how it works for me in Appfarm:

  • I have a hidden text input that is always kept in focus. I achieve this by forcing the focus back with the “On Lost Focus” event and also controlling its visibility.

  • When an item is scanned, the scanner essentially behaves like a keyboard: it types all the scanned information into the text input and then automatically presses Enter.

  • This triggers my action, which then handles the search and all the logic behind it.

This feature had been working for years, and the virtual keyboard was never displayed until recently. I’m not sure exactly when this behavior changed.
In the past, setting the input mode to “None” was sufficient to prevent the virtual keyboard from appearing.

Sorry again for the late reply! :grinning_face_with_smiling_eyes:

Yassine

Hi Yassine,

No problem! Are you able to send a screenshot of the setup, and a screen recording of the behavior, so we can try and recreate? You are correct that the input mode “None” should prevent the virtual keyboard from appearing, so more information to be able to advise further would be great.

Rhys

Hey Rhys

Sadly i don’t have the phone itself now ( since it’s now used by our client )

it is a scan that looks like this

i exactly simulate a casual Keyboard ( with Enter at the end of the scan )

The ScanBlock is not visible to the client ( exists but not visible ) . we have an autofocus on this text editor. normally with input mode none, it should not trigger virtual keyboard on your screen when focused

you can try it this way :

  • Create a text editor with auto focus and switch input mode to none
  • Launch your app on a smartphone.

this can be enough to reproduce this case.