You might ask why do I want that.
(您可能会问我为什么要那样。)
Here is the reason: (原因如下:)
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. (我必须手动单击系统栏以禁用物理键盘,虚拟键盘才能弹出。)
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?
(因此,有没有办法禁用代码中的物理键盘或使虚拟键盘出现,即使连接了某些“键盘”呢?)
ask by Han translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…