Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (keyboard)
Viewing all articles
Browse latest Browse all 352

Android check if keyboard is up

$
0
0

Hi, I found out that in webview if you define a text field as type="number" the device will open the number keyboard when selected. Which is great!

My problem is my device has a hide keyboard key on the keyboard that hides the keyboard but not with the number keyboard that pops up. By the way it is more like the phone keyboard. The problem... if I hit the back button to remove the keyboard it does my back eventlistener:

win.addEventListener('android:back', function(e) {
//DO STUFF HERE
});
Instead of removing the keyboard.

So my question: is there a test I can do to check if the keyboard is open?

If so then I can say:

Ti.UI.Android.hideSoftKeyboard()
If not then i can do my other stuff.

Thanks!


Viewing all articles
Browse latest Browse all 352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>