Skip to content

Commit d390bff

Browse files
author
VinhBT
committed
Fix issue ionic-team#173 ionic-team#212 delete deprecated event
1 parent 9da969a commit d390bff

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/ios/IonicKeyboard.m

-4
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ - (void)pluginInitialize {
4141

4242
[weakSelf.commandDelegate evalJs:[NSString stringWithFormat:@"cordova.plugins.Keyboard.isVisible = true; cordova.fireWindowEvent('native.keyboardshow', { 'keyboardHeight': %@ }); ", [@(keyboardFrame.size.height) stringValue]]];
4343

44-
//deprecated
45-
[weakSelf.commandDelegate evalJs:[NSString stringWithFormat:@"cordova.fireWindowEvent('native.showkeyboard', { 'keyboardHeight': %@ }); ", [@(keyboardFrame.size.height) stringValue]]];
4644
self.keyboardIsVisible = true;
4745
}
4846
}];
@@ -55,8 +53,6 @@ - (void)pluginInitialize {
5553

5654
[weakSelf.commandDelegate evalJs:@"cordova.plugins.Keyboard.isVisible = false; cordova.fireWindowEvent('native.keyboardhide'); "];
5755

58-
//deprecated
59-
[weakSelf.commandDelegate evalJs:@"cordova.fireWindowEvent('native.hidekeyboard'); "];
6056
self.keyboardIsVisible = false;
6157
}
6258
}];

www/android/keyboard.js

-6
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,9 @@ channel.onCordovaReady.subscribe(function() {
4141
var keyboardHeight = msg.substr(1);
4242
cordova.plugins.Keyboard.isVisible = true;
4343
cordova.fireWindowEvent('native.keyboardshow', { 'keyboardHeight': + keyboardHeight });
44-
45-
//deprecated
46-
cordova.fireWindowEvent('native.showkeyboard', { 'keyboardHeight': + keyboardHeight });
4744
} else if ( action === 'H' ) {
4845
cordova.plugins.Keyboard.isVisible = false;
4946
cordova.fireWindowEvent('native.keyboardhide');
50-
51-
//deprecated
52-
cordova.fireWindowEvent('native.hidekeyboard');
5347
}
5448
}
5549
});

0 commit comments

Comments
 (0)