I want to capture keystrokes in Windows, such as Fn + Pause, Fn + VolumeUp in my Java application, but I cannot detect their KeyCodes.
addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { System.out.println(e.getKeyCode()); } });
Using this snippet, it prints 0 for all keystrokes on the multimedia keys!
Please offer a suitable method to search for keyCode and thereby use it in a Java application.
source share