How to detect a combination of pressed keys
Hello all,
hope somebody can help me with this one.
I have a JTextArea on which I registered a KeyListener. Now, in case there is pressed a combination of keys (e.g. CTRL-C) I want to redirect this to a log file. Otherwise the pressed key has to be shown in the textarea. I noticed that the C is both handled by the keyPressed and keyTyped method. I would expect that in case of CTRL-C the C is only detected by the keyPressed and not the keyTyped. Anybody an idea how I can perform what I try to do ?
Thanks !

