Is there a way to hide the internal keyboard?
I need text input mode for a built-in scanner, but I don’t want the keyboard to be visible, when the focus go on it.
My other idea would be to capture and collect every keystroke somewhere. When I detect a scan, copy it into the input field/text field with the input mode set to ‘nothing’.
Anyone have any ideas?
Hello,
You can try this:
<input type="text" inputmode="none">
Please have in mind that AppStudio used a collection of HTML components to build the BS Input, so you may need to add this attribute manually to the “generated” input field code:
document.getElementById(‘myInput_contents”).setAttribute(“inputmode”, “none”);
Kind regards
Ricardo Carraretto
Hello Ricardo,
Thank you for the quick reply.
Unfortunately, despite searching everywhere, I can’t find “‘generated’ input field code” where I should enter the text.
Perhaps you could send me a screenshot so I can find it?
I’m at my limit with these things, because I work alone in Germany and can only communicate with someone here. And I always have to translate English, ideally.
Best regards
Ich kann auf Deutsch helfen, allerdings nicht mit der Sachkunde anderer. Sitze gerade wartend beim Arzt und kann mir die Sache eventuell erst heute Abend ansehen.
Bernd
Hallo Bernd,
danke schön für die Info - ich habe noch genug anderes zu programmieren, vielleicht schaffen wir es ja am Abend oder morgen. LG
Geht auch direkt: bsommer@bsommer.de
Hallo Allan,
ich versuche es erst einmal hier:
Falls du AppStudio verwendest und die deutschsprachige Version von AppStudio hast, erhältst du bei Klick auf InputMode nicht “none” zur Auswahl, sondern “kein”. Beides bedeutet “keine Bildschirmtastatur”. Ich habe “kein” ausprobiert auf dem Android Smartphone und es funktioniert, d.h. die Tastatur erscheint NICHT. Die weitere Empfehlung oben kannst du dir dann wahrscheinlich sparen. Generated ist nur missverstanden. Er meint, mit der ersten Zeile wird das Eingabefeld myInputContents generiert und mit der zweiten Zeile eventuell die Eigenschaft none erst eingestellt. Ist für dich vorerst uninteressant, wenn es mit meinem Beispiel schon zufriedenstellend funktioniert. Bitte erst probieren.
Hallo Bernd, ich habe im Email geantwortet. LG