2

I need to know is there any function in sencha touch to know if the keyboard hides. I want to call a function when a keyboard hides.

Any Idea...

Anish
  • 2,889
  • 1
  • 20
  • 45

1 Answers1

0

Pls check the below link. Hope this helps....

iPad Safari - Make keyboard disappear

To prevent showing the keyboard on:

<input type="text" name="someInput" /> 

for when you want to do something like use a jQuery UI datepicker...

add a readonly attribute like so:

<input type="text" name="someInput" readonly="readonly" />

If you are trying to be mindful of people with JS turned off, you could always leave off the attribute and add it in your code:

$('[name=someInput]').attr('readonly','readonly'); 
Community
  • 1
  • 1
jennifer
  • 8,133
  • 22
  • 69
  • 96
  • i am doing it in sencha touch. Pblm is when i load my sencha pag, tab bar goes off the screen and address bar appearing in the screen. for that i tried a code. it's working but i want to put this code in keyboard hide event. – Anish Jan 02 '12 at 05:39
  • i don't want blur. because in android, there is a keyboard hide button. if the user tap on that button, keyboard hides but focus will remain – Anish Jan 02 '12 at 05:41