Skip to content

Commit cd08b80

Browse files
committed
Fix for issue cjpearson#20
1 parent e4420c9 commit cd08b80

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

www/android/keyboard.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,21 @@ Keyboard.fireOnShow = function (height) {
1111
cordova.fireWindowEvent('keyboardDidShow', {
1212
'keyboardHeight': height
1313
});
14+
15+
// To support the keyboardAttach directive listening events
16+
// inside Ionic's main bundle
17+
cordova.fireWindowEvent('native.keyboardshow', {
18+
'keyboardHeight': height
19+
});
1420
};
1521

1622
Keyboard.fireOnHide = function () {
1723
Keyboard.isVisible = false;
1824
cordova.fireWindowEvent('keyboardDidHide');
25+
26+
// To support the keyboardAttach directive listening events
27+
// inside Ionic's main bundle
28+
cordova.fireWindowEvent('native.keyboardhide');
1929
};
2030

2131
Keyboard.fireOnHiding = function () {

www/ios/keyboard.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,21 @@ Keyboard.fireOnShow = function (height) {
3030
cordova.fireWindowEvent('keyboardDidShow', {
3131
'keyboardHeight': height
3232
});
33+
34+
// To support the keyboardAttach directive listening events
35+
// inside Ionic's main bundle
36+
cordova.fireWindowEvent('native.keyboardshow', {
37+
'keyboardHeight': height
38+
});
3339
};
3440

3541
Keyboard.fireOnHide = function () {
3642
Keyboard.isVisible = false;
3743
cordova.fireWindowEvent('keyboardDidHide');
44+
45+
// To support the keyboardAttach directive listening events
46+
// inside Ionic's main bundle
47+
cordova.fireWindowEvent('native.keyboardhide');
3848
};
3949

4050
Keyboard.fireOnHiding = function () {

0 commit comments

Comments
 (0)