[
https://issues.apache.org/jira/browse/CB-2384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596678#comment-13596678
]
Shazron Abdullah commented on CB-2384:
--------------------------------------
I experimented with this, the problem is how to dismiss the keyboard now since
the "Done" button is gone - the only way to dismiss it is:
1. another element gains focus
2. the input element loses focus (through .blur())
Usually an input text element is paired with another action button. The action
of touching that button would lose focus on the input text element anyway,
resulting in the keyboard going away.
> Add new iOS Project Setting to suppress the form accessory bar above the
> keyboard
> ---------------------------------------------------------------------------------
>
> Key: CB-2384
> URL: https://issues.apache.org/jira/browse/CB-2384
> Project: Apache Cordova
> Issue Type: Improvement
> Components: iOS
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Priority: Minor
> Fix For: 2.6.0
>
>
> See:
> http://stackoverflow.com/questions/7904892/remove-form-assistant-from-keyboard-in-iphone-standalone-web-app
> {code}
> [[NSNotificationCenter defaultCenter] addObserver:self
> selector:@selector(keyboardDidShow:) name:UIKeyboardDidShowNotification
> object:nil];
> {code}
> {code}
> -(void)keyboardDidShow:(NSNotification*)notif
> {
> NSArray *array = [[UIApplication sharedApplication] windows];
> for (UIWindow* wind in array) {
> for (UIView* currView in wind.subviews) {
> if ([[currView description] hasPrefix:@"<UIPeripheralHostView"]) {
> for (UIView* perView in currView.subviews) {
> if ([[perView description]
> hasPrefix:@"<UIWebFormAccessory"]) {
> [perView setHidden:YES];
> }
> }
> }
> }
> }
> }
> {code}
> Suggested name for the setting: *HideKeyboardFormAccessoryBar* with a default
> of false
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira