Skip to content

📱 Hides virtual keyboard on a real mobile device (iPhone, Android, ...)

Notifications You must be signed in to change notification settings

codingclemo/hide-virtual-keyboard.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hide-virtual-keyboard.js

Hides the virtual keyboard on a mobile device (iOS, Android, ...)

Installation

Bundler

To use the library, install it through npm

npm install hide-virtual-keyboard

To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: Browserify, Webmake or Webpack

Drop-in

If using a bunlder is not your thing, there is a file with UMD (Universal Module Definition) under dist/ folder. Just reference it on your browser (drop it) and use it.

<script src="dist/hide-virtual-keyboard.js"></script>
<script>
  setTimeout(_ => {
    window.hideVirtualKeyboard()
  }, 250)
</script>

Usage

The module is a function that once called will blur from current focused input, hiding the virtual keyboard.

hideVirtualKeyboard()

caiogondim.com  ·  GitHub @caiogondim  ·  Twitter @caio_gondim

About

📱 Hides virtual keyboard on a real mobile device (iPhone, Android, ...)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%