How can a global listener be implemented? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can a global listener be implemented?

How can you implement a global listener that will track keystrokes even when the app window is minimized in the background?

10th Apr 2018, 7:04 AM
Хетаг Кастуев
Хетаг Кастуев - avatar
1 Answer
0
"I don't think that is possible. Once the frame is minimized, the application is no longer focused, and key event will transfer to the focused application or to the system." Source: https://stackoverflow.com/questions/23110614/how-to-minimize-and-maximize-jframe-in-java-using-mouse-and-key-listener?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
10th Apr 2018, 9:20 AM
Emma