I am trying to develop a "kiosk mode" application based on the Chromium CEF web browser. I want to prevent the user from leaving the browser. This entails disabling keyboard shortcuts such as (but not limited to) the following:
I currently have a script that, prior to starting my app, uses xmodmap to load in a special keymap and mouse pointer configuration. It also uses gsettings to set various keys within the following:
Under Ubuntu 14.04, this approach seems to work for most keys, but it is very cumbersome. Furthermore, ot all keys seem to be accounted for under Ubuntu 12.04. I may have to set keys here:
How can I make this completely work under both Ubuntu 12.04 and 14.04? Is this even the right approach? Is there perhaps an easier way than setting each individual key? I thought using xmodmap would work best, but it appears that the OS intercepts some keystrokes prior to them reaching my app.