Languages

Menu
Sites
Language
How do I Detect if Software Keyboard is Visible?

I'm trying not to menu operation when software keyboard is visible.

Is there a way in Tizen to detect if the software (a.k.a. "soft") keyboard is visible on screen?

 

 

View Selected Answer

Responses

5 Replies
Mark as answer
colin Rao

Hi,

From the IDE help(API reference), check the conformant container, there is such description as below:

Signals

To receive notifications about the state of the virtual keyboard and clipboard, listen to the following Evas signals:
•"virtualkeypad,state,on": The virtual keyboard has been switched on.
•"virtualkeypad,state,off": The virtual keyboard has been switched off.
•"virtualkeypad,size,changed": The virtual keyboard size has changed.
•"clipboard,state,on": The clipboard has been switched on.
•"clipboard,state,off": The clipboard has been switched off. 

Seems you can try to listen the "virtualkeypad,state,on" signal to detect whether the keyboard is visible or not.

 

Palitsyna

Hello,

follow this link to get full information about a conformant container. The conformant is a container widget that accounts for the space taken by the indicator, virtual keyboard, and softkey windows:

https://developer.tizen.org/dev-guide/native/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/ui/container_conformant.htm

 

Regards,

Svetlana Palitsyna

terry kim

Thanks, This is working for me.

Michelle Dupuis

Could you post working code for how to listen to this signal?  I have added the smart callback for the keypanel,state,off signal but it never fires.  

Michelle Dupuis