Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/ios/CDVIonicKeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ - (void)pluginInitialize
}
self.hideFormAccessoryBar = [settings cordovaBoolSettingForKey:@"HideKeyboardFormAccessoryBar" defaultValue:YES];

// get the KeyboardStyle value from config.xml
NSString *keyboardStyle = [settings cordovaSettingForKey:@"KeyboardStyle"];
if (keyboardStyle) {
// call to setKeyboardStyle
[self setKeyboardStyle:keyboardStyle];
}

if ([settings cordovaBoolSettingForKey:@"KeyboardAppearanceDark" defaultValue:NO]) {
[self setKeyboardStyle:@"dark"];
}

NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];

[nc addObserver:self selector:@selector(onKeyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];
Expand Down Expand Up @@ -156,7 +158,6 @@ - (void)onKeyboardWillShow:(NSNotification *)note
[self resetScrollView];
}

// call to setKeyboardStyle in case it's changed
[self setKeyboardStyle:self.keyboardStyle];

NSString *js = [NSString stringWithFormat:@"Keyboard.fireOnShowing(%d);", (int)height];
Expand Down