Disable shortcut keys in Linux (Ubuntu)
I need开发者_如何学编程 some tips in how can I disable shortcut keys in Linux (Ubuntu), while running an application. I need simple application, which when is started all the shortcut keys are disabled, including ctrl+c,ctrl+v,alt+tab, etc. I need Java implementation. After exiting the application, everything should be normal again. Any help will be useful, also and some simple code :)
Regards
Java is a cross-platform environment, so it avoids any system-specific libraries. However, you can use JNI to call program in C or anything else, that will actually set hooks.
But note, that it really sucks, if the user cannot use Alt-Tab.
UPD. There's a question on SO, that describes hot to better grab keystrokes in X.
精彩评论