How do I know the state of the Shift key when the C key is pressed?

I want to write a program that waits until CTRL+ SHIFT+ is pressed Aand then prints "Hello World!" I am using MacOSX and I want it to be console based.

+3


source to share


1 answer


If "Console-Based" means the program should run in a terminal, it cannot distinguish Ctrl+ Afrom Ctrl+ Shift+ A; both have the same input.



+3


source







All Articles