Last active
November 27, 2015 06:08
-
-
Save lawrencehui/1078e52a7381701d426e to your computer and use it in GitHub Desktop.
Use focus to open keyboard after navTransition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<preference name="KeyboardDisplayRequiresUserAction" value="false" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//defer focus() to wait for UI Animations | |
//use for open keyboard after navTransition | |
deferFocus = function(jQueryObj){ | |
Meteor.setTimeout(function(){ | |
jQueryObj.focus(); | |
}, 500); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.info({...}); | |
App.setPreference('KeyboardDisplayRequiresUserAction', false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment