Skip to content

Commit

Permalink
Merge pull request cjpearson#22 from TheMattRay/master
Browse files Browse the repository at this point in the history
Fix for issue cjpearson#20
  • Loading branch information
mlynch authored May 24, 2018
2 parents e4420c9 + cd08b80 commit db0d327
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 db0d327

Please sign in to comment.