Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit eb6600a

Browse files
nklhtvgortok
authored andcommitted
ev args added to $cordovaKeyboard events (#1324)
1 parent 5cd6110 commit eb6600a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plugins/keyboard.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ angular.module('ngCordova.plugins.keyboard', [])
55

66
.factory('$cordovaKeyboard', ['$rootScope', function ($rootScope) {
77

8-
var keyboardShowEvent = function () {
8+
var keyboardShowEvent = function (ev) {
99
$rootScope.$evalAsync(function () {
10-
$rootScope.$broadcast('$cordovaKeyboard:show');
10+
$rootScope.$broadcast('$cordovaKeyboard:show', { ev: ev });
1111
});
1212
};
1313

14-
var keyboardHideEvent = function () {
14+
var keyboardHideEvent = function (ev) {
1515
$rootScope.$evalAsync(function () {
16-
$rootScope.$broadcast('$cordovaKeyboard:hide');
16+
$rootScope.$broadcast('$cordovaKeyboard:hide', { ev: ev });
1717
});
1818
};
1919

0 commit comments

Comments
 (0)