开发者

How do I block all the keyboard shortcuts in linux

开发者 https://www.devze.com 2023-02-06 06:04 出处:网络
How do I block all the keyboard shortcuts in linux? Can these shortcuts be generated from some script? If yes, how can I trap these events so that system does not process those key events.

How do I block all the keyboard shortcuts in linux? Can these shortcuts be generated from some script? If yes, how can I trap these events so that system does not process those key events.

I read ab开发者_如何学运维out XGrabKeyboard for trapping all key events but not sure this will work for touch screens as well.


If your goal is to block ctrl+alt+del, just edit /etc/inittab and comment this line:

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
0

精彩评论

暂无评论...
验证码 换一张
取 消