Skip to content

Instantly share code, notes, and snippets.

@lawrencehui
Last active November 27, 2015 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawrencehui/1078e52a7381701d426e to your computer and use it in GitHub Desktop.
Save lawrencehui/1078e52a7381701d426e to your computer and use it in GitHub Desktop.
Use focus to open keyboard after navTransition
<preference name="KeyboardDisplayRequiresUserAction" value="false" />
//defer focus() to wait for UI Animations
//use for open keyboard after navTransition
deferFocus = function(jQueryObj){
Meteor.setTimeout(function(){
jQueryObj.focus();
}, 500);
}
App.info({...});
App.setPreference('KeyboardDisplayRequiresUserAction', false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment