1

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

Martin Dow
  • 5,273
  • 4
  • 30
  • 43
boban
  • 39
  • 1
  • 3

1 Answers1

0

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.

Community
  • 1
  • 1
ffriend
  • 27,562
  • 13
  • 91
  • 132