tree: 0d397fed322c47f2f4e0a8a7419df16a8d93af07 [path history] [tgz]
  1. arc/
  2. ui/
  3. DIR_METADATA
  4. keyboard_controller_impl.cc
  5. keyboard_controller_impl.h
  6. keyboard_controller_impl_unittest.cc
  7. keyboard_util.cc
  8. keyboard_util.h
  9. OWNERS
  10. README.md
  11. test_keyboard_ui.cc
  12. test_keyboard_ui.h
  13. virtual_keyboard_container_layout_manager.cc
  14. virtual_keyboard_container_layout_manager.h
  15. virtual_keyboard_controller.cc
  16. virtual_keyboard_controller.h
  17. virtual_keyboard_controller_unittest.cc
  18. virtual_keyboard_unittest.cc
ash/keyboard/README.md

Virtual Keyboard

Enabled or Disabled

The virtual keyboard can be enabled or disabled. When it is enabled, it shows and hides depending where the focus is.

Whether the virtual keyboard is enabled depends on a sequence of criteria that are listed in order below:

  1. Accessibility Setting: When the user enables the virtual keyboard via the accessibility settings, then the virtual keyboard is enabled. The setting can also be forcibly overridden by the VirtualKeyboardEnabled policy.
  2. Shelf (Temporary): The virtual keyboard may be temporarily enabled via entry points in the shelf input method menu. It is disabled as soon as the virtual keyboard hides.
  3. Android IME: Users can install custom Android input methods that run in ARC++. When using an Android input method, the ChromeOS virtual keyboard is disabled.
  4. Enterprise Policy: Explicitly setting the TouchVirtualKeyboardEnabled policy to true or false will enable or disable the virtual keyboard.
  5. Command Line Switches: The --enable-virtual-keyboard and --disable-virtual-keyboard command line switches (and their corresponding flags in about://flags) enables and disables the virtual keyboard.
  6. Extension API: Certain first-party extensions may enable or disable the virtual keyboard via the chrome.virtualKeyboardPrivate.setKeyboardState API.
  7. Touch: Finally, if none of the above applies, then the virtual keyboard is only enabled if all the following are true:
    • There is at least one touchscreen.
    • The internal keyboard (if it exists) is ignored. An internal keyboard can be ignored by, for example, detaching it (detachable) or folding a device into tablet mode (convertible).
    • Any external keyboards (if they exist) are ignored. External keyboards can be ignored by a user toggle in the shelf input method menu.