Celeb Glow
general | March 27, 2026

How to entirely disable keyboard shortcuts for "kiosk mode" applications

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:

  • Alt-F4
  • Ctrl-Super-D
  • Ctrl-Alt-Del
  • Super-S

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:

  • org.gnome.settings-daemon.plugins.media-keys
  • org.gnome.desktop.wm.keybindings

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:

  • /apps/metacity/window_keybindings/close
  • /apps/compiz-1/plugins/core/screen0/options/close_window_key

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.

3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy