Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Feb 2010
#1
Hi,

I'm developing an application (using Qt) that is supposed to "take over" the device by going into full screen and not allowing the user to switch to another application etc.

Displaying a full screen window is no problem. However, in order to prevent the user from exiting my application I need to disable various keyboard shortcuts like Ctrl+Backspace and Shift+Ctrl+X. I know these commands are handled by hildon-desktop, and looking at the source code I can see that it uses XGrabKey to grab those keys. But I'm not sure how to override them from my application. Would a call to XGrabKey in my application override hildon-desktop since my application has the active window? Or is there another way to intercept those key events, perhaps using XGrabKeyboard?

Any help appreciated.
 
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#2
Don't know if this will work for these Kb shortcuts, but try something like this: http://qt.nokia.com/doc/qt-maemo-4.6/maemo5-zoom.html
__________________
Valério Valério
www.valeriovalerio.org
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:44.