简体   繁体   English

如何阻止Linux中的所有键盘快捷键

[英]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.

相关问题 如何为我的Linux游戏禁用gnome窗口管理器键盘快捷键? - How can I disable gnome window manager keyboard shortcuts for my linux game? 如何在 Arch Linux 中使用 Super 和 Super+L 作为不同的键盘快捷键? - How can I use both Super and Super+L as different keyboard shortcuts in Arch Linux? 如何在Linux中创建快捷方式? - How can i create shortcuts in Linux? 如何在XXX毫秒内阻止Linux机器上的所有其他进程? - How do I block all other processes on a Linux machine for XXX milliseconds? 在Linux C应用程序中创建自定义键盘快捷键 - Creating custom keyboard shortcuts in a linux c application 阻止Linux应用程序中的所有键盘输入(使用Qt或Mono) - Block All Keyboard Input in a Linux Application (Using Qt or Mono) 如何在 GNOME 中拦截键盘快捷键 - How to intercept keyboard shortcuts in GNOME 如何在阻止sudo的Linux发行版上安装RoR? - how do I install RoR on Linux distros that block sudo? 您如何在Linux中处理键盘事件? - How do you handle keyboard events in linux? 如何在 Qt 中模拟适用于 Linux 和 Windows 的所有鼠标和键盘事件? - How can I simulate all mouse and keyboard events in Qt that works on Linux and Windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM