[英]How do I block all the keyboard shortcuts in linux
How do I block all the keyboard shortcuts in linux? 如何阻止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 about XGrabKeyboard for trapping all key events but not sure this will work for touch screens as well. 我了解了有关XGrabKeyboard的信息,该信息用于捕获所有键事件,但不确定这是否也适用于触摸屏。
如果您的目标是阻止ctrl + alt + del,则只需编辑/ etc / inittab并注释以下行:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.