# Disable keyboard popup on app

**URL:** <https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 3, 2024, 1:44pm UTC](https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480 "2024-09-03T13:44:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.iannozzi](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d.iannozzi](https://forum.inductiveautomation.com/u/d.iannozzi)\
**Post date:** [September 3, 2024, 1:44pm UTC](https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480/1 "2024-09-03T13:44:33Z")

</div>

Hello guys,  
is there a way to stop the popup keyboard from showing when i start typing in a textbox in a perspective application running on an android device.

Thanks and regards,  
Dominic

---

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [September 4, 2024, 6:18pm UTC](https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480/2 "2024-09-04T18:18:22Z")

</div>

Why would you need to do this? The point of a text field is to input information into the text field. Are you implementing a custom keyboard?

I don't believe there is an easy way to do this. You may have luck doing some `preventDefault` in the focus handler of the text field. But I am not sure that will help either.

---

<div class="post-metadata">

**Author:** ![d.iannozzi](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d.iannozzi](https://forum.inductiveautomation.com/u/d.iannozzi)\
**Post date:** [September 5, 2024, 6:12am UTC](https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480/3 "2024-09-05T06:12:27Z")

</div>

Hi Benjamin,  
The textbox that I want to use is to capture a barcode using the built-in scanner on the device ; so I don't need to input any text in the field.  
The popup keyboard hides the barcode text that I placed at the bottom of the screen.  
The only workaround I found was to simply move the barcode text object higher up so it doesn't get overlayed.

---

<div class="post-metadata">

**Author:** ![Nathan\_Moore](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@Nathan\_Moore](https://forum.inductiveautomation.com/u/Nathan_Moore)\
**Post date:** [September 5, 2024, 10:04am UTC](https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480/4 "2024-09-05T10:04:09Z")

</div>

I am not able to test on a mobile device to be sure, but you may be able to call .focus() on another element in the view in your onClick event for the textbox, but even if that worked then the text sent from the device likely wouldn't enter the textbox.

If it does work, you could call the .focus after the text has been entered to immediately dismiss the keyboard.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [September 5, 2024, 10:45am UTC](https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480/5 "2024-09-05T10:45:16Z")

</div>

> [@d.iannozzi](#):
>
> so I don't need to input any text in the field

So then why wouldn't you just use a label component instead? You can just add an onClick and select scan barcode as the action.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/a/7abc64223bf021060a77a701d4531a424f614388.png)

Then there would be no keyboard.

---

<div class="post-metadata">

**Author:** ![d.iannozzi](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d.iannozzi](https://forum.inductiveautomation.com/u/d.iannozzi)\
**Post date:** [September 5, 2024, 12:02pm UTC](https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480/6 "2024-09-05T12:02:14Z")

</div>

Hi Benjamin,  
I did actually look at that solution ; unfortunately the device is using a built-in barcode reader and not a typical camera so the onClick -\> barcodeAction does not give the desired effect.  
I appreciate your time...I think I will just stick with the workaround (moved the barcode object higher up so it stays visible when the keyboard pops up)

Thanks!  
Dominic

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 9, 2024, 3:15pm UTC](https://forum.inductiveautomation.com/t/disable-keyboard-popup-on-app/95480/7 "2024-09-09T15:15:45Z")

</div>

Split this topic on September 9, 2024, 3:15pm UTC

2 posts were split to a new topic: [Question about scanning barcodes](https://forum.inductiveautomation.com/t/question-about-scanning-barcodes/95734)
