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?
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.