I need to stop certain key sequences from happening. I am building a kiosk type application for practice and whilst the app is running, I need to lock out the Alt+Tab combo’s, and others like Ctrl+Shift+Esc.
I found this link but I tried to run it as a seperate class and incorporate it into my main class and I can still press tab.
Any and all help would be amazing!
Your best if not only bet (without resulting to JNI) is to intercept KeyEvents using a KeyListener or KeyAdapter, and filter out those you want to block.
This MAY prevent these keystrokes from being intercepted by the operating system as well, but as Jesper indicates, it’s far from certain whether this will actually happen.
To effectively intercept such things, you’re going to have to install special software that sits much closer to the operating system, like customised keyboard drivers.