1

I want the event name which is called when user presses the back key to hide the keyboard and how we call the same. Because onKeyDown method for back press is only worked when keyboard is hidden.

Thanks in advance.

Sanat Pandey
  • 4,081
  • 17
  • 75
  • 132

2 Answers2

0

you can not get if virtual keyboard has been displayed or not directly. There is a workaround for this, in which we need to get window's available width, and Height and compare it with width and height values stored previously.

jeet
  • 29,001
  • 6
  • 52
  • 53
0

Whenever the soft keyboard is present, it is actually dismissed when back is pressed because when it shows up, it actually has focus. It has focus because its ideally being used by the user and needs focus.

JoxTraex
  • 13,423
  • 6
  • 32
  • 45