Skip to content

Commit

Permalink
Fix for issue cjpearson#20
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMattRay committed May 24, 2018
1 parent e4420c9 commit cd08b80
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions www/android/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@ Keyboard.fireOnShow = function (height) {
cordova.fireWindowEvent('keyboardDidShow', {
'keyboardHeight': height
});

// To support the keyboardAttach directive listening events
// inside Ionic's main bundle
cordova.fireWindowEvent('native.keyboardshow', {
'keyboardHeight': height
});
};

Keyboard.fireOnHide = function () {
Keyboard.isVisible = false;
cordova.fireWindowEvent('keyboardDidHide');

// To support the keyboardAttach directive listening events
// inside Ionic's main bundle
cordova.fireWindowEvent('native.keyboardhide');
};

Keyboard.fireOnHiding = function () {
Expand Down
10 changes: 10 additions & 0 deletions www/ios/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,21 @@ Keyboard.fireOnShow = function (height) {
cordova.fireWindowEvent('keyboardDidShow', {
'keyboardHeight': height
});

// To support the keyboardAttach directive listening events
// inside Ionic's main bundle
cordova.fireWindowEvent('native.keyboardshow', {
'keyboardHeight': height
});
};

Keyboard.fireOnHide = function () {
Keyboard.isVisible = false;
cordova.fireWindowEvent('keyboardDidHide');

// To support the keyboardAttach directive listening events
// inside Ionic's main bundle
cordova.fireWindowEvent('native.keyboardhide');
};

Keyboard.fireOnHiding = function () {
Expand Down

0 comments on commit cd08b80

Please sign in to comment.