File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff 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
1622Keyboard . 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
2131Keyboard . fireOnHiding  =  function  ( )  { 
Original file line number Diff line number Diff 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
3541Keyboard . 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
4050Keyboard . fireOnHiding  =  function  ( )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments