I'm trying to make my own text editor in Java, but I've run into a problem when I try to type a question mark into my program.
With KeyEvent e,
e.getKeyChar() will return '?' when the question mark key is pressed, but also when a key such as shift or control is pressed.
Is it safe to assume that '?' is always the secondary character for a forward slash?
Am I missing something or doing something wrong?
Thanks.