Take the 2-minute tour ×

Im working with a kiosk software, and it can easly be exited with the escape key. Theres no way to disable this behaviour, why I would want to simply disable the escape key completely.

I tried with executing:

xmodmap -e "keycode 9 ="

from .Xsession, but that does not help. (Im sure that .Xsession runs, because there is other commands in .Xsession which are run correctly).

share|improve this question
Maybe some system setting is being applied after your .Xsession. For example, here's a workaround for gnome. –  Gilles Nov 15 '10 at 20:31

1 Answer 1

up vote 0 down vote accepted

As a hack, you could use a global shortcut program like Xbindkeys, and bind the escape key to /bin/true, which does nothing.

share|improve this answer
Thanks, works perfectly. –  sebastian nielsen Nov 15 '10 at 9:08

Your Answer


