Google Chrome Mobile Emulator: How to show on screen keyboard

Google ChromeMobileGoogle Chrome-Devtools

Google Chrome Problem Overview


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?

Google Chrome Solutions


Solution 1 - Google Chrome

Chrome developer tools has limited 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 devtools-frontend source-code (mirror on GitHub). 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.

Screenshot of Chrome Developer Tools

Solution 2 - Google Chrome

The closest I have come is using the virtual keyboard extension from: "Chrome Virtual Keyboard"

Note: I had to set it to use the touch events when using it with a Sencha Touch app I was working on.

There are a number of others so just search for "virtual keyboard" in the chrome extensions area and pick what you like.

Solution 3 - Google Chrome

It seems that keybooard emulation is no more available (July 2021)

And the Chrome extensions I tested just add a keyboard but they don't simulate at all any mobile rendering.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAaron HellmanView Question on Stackoverflow
Solution 1 - Google ChromeDenilson Sá MaiaView Answer on Stackoverflow
Solution 2 - Google ChromeAnthonyVOView Answer on Stackoverflow
Solution 3 - Google ChromemigliView Answer on Stackoverflow