Google Chrome移动模拟器:如何在屏幕键盘上显示 [英] Google Chrome Mobile Emulator: How to show on screen keyboard

查看:678
本文介绍了Google Chrome移动模拟器:如何在屏幕键盘上显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Chrome的移动仿真工具调试我们网站的移动版本,但无法弄清楚如何在选择文本字段时弹出屏幕上的键盘。

我点击了文本框,但没有弹出键盘。如果我在移动设备上执行此操作,则会弹出默认输入法(键盘)并允许我键入。



有没有办法复制这个?

解决方案

最新的Chrome开发人员工具添加了对模拟不同设备状态的支持: b
$ b


  • 默认浏览器界面

  • bar

  • 随着打开的键盘



根据


I'm debugging a mobile version of our website through Chrome's Mobile Emulation tool, but cannot figure out how to have an on-screen keyboard pop up when selecting a text field.

I have clicked on the text box, but no keyboard pops up. If I do this on a mobile device, the default input method (keyboard) pops up and allows me to type.

Is there a way to replicate this?

解决方案

Latest Chrome developer tools have added support for emulating different device states:

  • Default browser UI
  • With Chrome navigation bar
  • With opened keyboard

According to the documentation, such feature is only available when emulating "supported devices like the Nexus 5X".

The complete list of emulated devices that support this feature can be found at Chromium source-code. Currently, it is only supported by:

  • Nexus 5
  • Nexus 5X

Note that the emulated keyboard and navigation bar are just static pictures (as you can see at the source-code directory) and don't contain any interactive behavior. It is a good enough way to simulate the screen size, but it is not a perfect emulation.

这篇关于Google Chrome移动模拟器:如何在屏幕键盘上显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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