سؤال

How to handle softkeyboard show/hide events in android and iPhone in a hybrid app uses worklight.

I'm using Worklight 6.1.0.01

هل كانت مفيدة؟

المحلول

The following is working fine in both android and iOS

  document.addEventListener("showkeyboard", function(){
//keyboard is ON
  }, false);
  document.addEventListener("hidekeyboard", function(){ 
//keyboard is OFF
  }, false);

Thank you

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top