如何禁用code物理键盘(使用虚拟键盘所有的时间) [英] How to disable physical keyboard in code(use virtual keyboard all the time)

查看:252
本文介绍了如何禁用code物理键盘(使用虚拟键盘所有的时间)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可能会问,为什么我要那个。这里的原因:

You might ask why do I want that. Here is the reason:

我用了吧code扫描我的应用程序的登录屏幕。但连接杆code扫描仪会迫使我的平板电脑使用物理键盘(它认为扫描仪是键盘)和prevents虚拟键盘从上来(这是我想了一些其他的屏幕)。我必须手动点击系统栏上禁用物理键盘虚拟键盘弹出。

I used a barcode scanner for the login screen of my application. However connecting the barcode scanner will force my tablet to use the physical keyboard (it thinks the scanner is the keyboard) and that prevents the virtual keyboard from coming up (which I want for some other screens). I have to manually click on the system bar to disable the physical keyboard for the virtual keyboard to popup.

那么,有没有一种方法来禁用物理键盘在code或使虚拟键盘来了,即使一些键盘连接?

So, is there a way to disable the physical keyboard in code or make the virtual keyboard come up even if some "keyboard" is connected?

推荐答案

请尝试以下

设置> 语言和放大器;输入>在键盘和输入法点击默认。是否有一个选项,以取消或禁用硬件/物理键盘?

Settings > Language & Input > Under Keyboard and input methods click Default. Is there an option to to uncheck or disable Hardware/Physical Keyboard?

这是反直觉的,但这样做之后,我可以同时使用物理键盘和虚拟键盘设备上(安卓4.2)

It's counter intuitive, but after doing that, I can use both a physical keyboard and the virtual keyboard on my device (Android 4.2)

这篇关于如何禁用code物理键盘(使用虚拟键盘所有的时间)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆