diff --git a/src/ios/IonicKeyboard.m b/src/ios/IonicKeyboard.m index d072ca7..e0462e6 100644 --- a/src/ios/IonicKeyboard.m +++ b/src/ios/IonicKeyboard.m @@ -37,8 +37,6 @@ - (void)pluginInitialize { [weakSelf.commandDelegate evalJs:[NSString stringWithFormat:@"cordova.plugins.Keyboard.isVisible = true; cordova.fireWindowEvent('native.keyboardshow', { 'keyboardHeight': %@ }); ", [@(keyboardFrame.size.height) stringValue]]]; - //deprecated - [weakSelf.commandDelegate evalJs:[NSString stringWithFormat:@"cordova.fireWindowEvent('native.showkeyboard', { 'keyboardHeight': %@ }); ", [@(keyboardFrame.size.height) stringValue]]]; }]; _keyboardHideObserver = [nc addObserverForName:UIKeyboardWillHideNotification @@ -46,9 +44,6 @@ - (void)pluginInitialize { queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification* notification) { [weakSelf.commandDelegate evalJs:@"cordova.plugins.Keyboard.isVisible = false; cordova.fireWindowEvent('native.keyboardhide'); "]; - - //deprecated - [weakSelf.commandDelegate evalJs:@"cordova.fireWindowEvent('native.hidekeyboard'); "]; }]; } diff --git a/www/android/keyboard.js b/www/android/keyboard.js index 125a5a2..c80d8c4 100644 --- a/www/android/keyboard.js +++ b/www/android/keyboard.js @@ -41,15 +41,9 @@ channel.onCordovaReady.subscribe(function() { var keyboardHeight = msg.substr(1); cordova.plugins.Keyboard.isVisible = true; cordova.fireWindowEvent('native.keyboardshow', { 'keyboardHeight': + keyboardHeight }); - - //deprecated - cordova.fireWindowEvent('native.showkeyboard', { 'keyboardHeight': + keyboardHeight }); } else if ( action === 'H' ) { cordova.plugins.Keyboard.isVisible = false; cordova.fireWindowEvent('native.keyboardhide'); - - //deprecated - cordova.fireWindowEvent('native.hidekeyboard'); } } });