hansalemaos / input_timeout

Like python's input(), but with timeout and default value
https://pypi.org/project/input-timeout/
MIT License
2 stars 0 forks source link

input focus #3

Open yangmeishu opened 2 weeks ago

yangmeishu commented 2 weeks ago

windows 10 system When you enter a character and haven't pressed Enter, but the window is switched to another program, the system's input focus will remain in the input terminal. This will cause other programs to react to the phenomenon that one character is entered and one character is deleted. The input focus is forcibly occupied.

hansalemaos commented 2 weeks ago

Yes, that is true. I haven't found any other way to solve this problem.