We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key sources include real human keyboard input and java.awt.Robot virtual input. How do I distinguish them when using keyListener?
I tried to distinguish by these properties, but they are the same in both cases.
public void nativeKeyPressed(NativeKeyEvent e) { System.out.println("--------------------------"); System.out.println(e.getKeyCode()); System.out.println(e.getKeyLocation()); System.out.println(e.getWhen()); System.out.println(e.getKeyChar()); System.out.println(e.getSource()); System.out.println(e.getID()); System.out.println(e.getModifiers()); System.out.println(e.getRawCode()); System.out.println("=========================="); }
The text was updated successfully, but these errors were encountered:
This has been resolved upstream and will be available in 2.3
Sorry, something went wrong.
No branches or pull requests
Key sources include real human keyboard input and java.awt.Robot virtual input. How do I distinguish them when using keyListener?
I tried to distinguish by these properties, but they are the same in both cases.
The text was updated successfully, but these errors were encountered: