Skip to content

B1naryStudio/virtual-keyboard-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

VirtualKeboard helper (v 0.9.0b)

This library requires Backbone and jQuery. This library provide events for mobile keyboard open/close. Basically it binds on focus event in iPhone and iPad devices and on resize in other devices. Was tested on iPad, iPhone and Android. if it won't work on other device please mail me)

Basic events

Rebind event

To rebind events, when you view was rerendered trigger Backbone event virtualKeyboard:bindEvents

Backbone.trigger("virtualKeyboard:bindEvents");

Device detected

When device was detected (Other, iPad, iPhone) virtualKeyboard:device.detected will be triggered Basically this event triggering only at start, but this event will be triggered also if you manually trigger event virtualKeyboard:device.detect

Backbone.on("virtualKeyboard:device.detected", function(deviceInfo){
/*
deviceInfo = {
    type: (Other || iPad || iPhone),
    version: (int)
}
*/
...
});

Keyboard opened

When keyboard is opened it triggers 2 events virtualKeyboard and virtualKeyboard.opened

Keyboard closed

When keyboard is opened it triggers 2 events virtualKeyboard and virtualKeyboard.closed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published