Hide mobile/virtual keyboard

Demo to preview the plugin:

Introduction

This plugin enables you to programmatically hide the mobile keyboard during specific workflows, ensuring a smoother user experience by managing keyboard visibility as needed.

How to setup

  1. Install plugin in the app
  1. Set plugin โ€œMobile keyboard stateโ€ element on the page, to check keyboard visibility.
  1. Use the plugin action to hide the keyboard when visible

Plugin Element โ€œMobile keyboard stateโ€

Checks the keyboard visible state
Image without caption

Exposed states

Name
Description
Type
Is mobile keyboard open?
Shows if the keyboard is open based on whether an input or text area field is focused or not.
Yes/No

Element Events

Name
Description
Mobile keyboard open
Fires when the keyboard is likely open.
Mobile keyboard closed
Fires when the keyboard is likely closed

Plugin Actions

ฦ’ Hide mobile/virtual keyboard

This action checks for the presence of a virtual keyboard and attempts to hide it. If the user is on a mobile device (based on the user agent string), it blurs the currently focused element and all input fields on the page to close the virtual keyboard. This action is useful for improving user experience when transitioning between inputs or when an on-screen keyboard is not needed.
Image without caption
This function aims to hide the virtual keyboard by invoking the hide method of the navigator.virtualKeyboard API. It also blurs the currently active input and all input fields on the page, ensuring the keyboard is dismissed.
๐Ÿ’ก
Important Note: The effectiveness of the virtual keyboard method may vary across devices and browsers due to inconsistent support, as these features are often still in testing. Please consult the documentation for detailed compatibility information. While this function is designed to close the keyboard, it may not succeed if the keyboard is not associated with an active input.

Changelogs

Update 23.07.24 - Version 1.7.0

  • Minor update.

Update 13.06.24 - Version 1.6.0

  • Updated demo/service links.

Update 30.04.24 - Version 1.5.0

  • minor update.

Update 29.04.24 - Version 1.4.0

  • Added a plugin state to display if the keyboard is open.

Update 26.04.24 - Version 1.3.0

  • updated description.

Update 15.04.24 - Version 1.2.0

  • updated description.

Update 08.03.24 - Version 1.1.0

  • Acquired by Zeroqode.

Update 08.12.23 - Version 1.0.5

  • Update.

Update 10.08.23 - Version 1.0.4

  • Small update.

Update 03.08.23 - Version 1.0.3

  • Small update.

Update 25.07.23 - Version 1.0.2

  • Transfer to Flusk.

Update 24.08.22 - Version 1.0.1

  • Update.

Update 23.10.21 - Version 1.0.0

  • First.