Closed jiayouzl closed 2 months ago
from pynput import keyboard
def on_activate_f1():
print('<f1> pressed')
with keyboard.GlobalHotKeys({
'<f1>': on_activate_f1
}) as h:
h.join()
This writing is also invalid.
2022-10-05
I just found the above code invalid in Windows10 21H2. Can't operate normally.
Everything is normal except the f1-f12 key.
Thank you for your report.
There has been a regression in the parsing and handling of hotkeys, a fix for which I just pushed. Do you have the possibility to test pynput from the master branch and see if any of your issues is resolved?
pip install git+https://github.com/moses-palmer/pynput.git
Is this how it is installed?
Use pip install git+https://github.com/moses-palmer/pynput.git Problem solved
Thank you for your response. I will close this issue as soon as a new version is released.
I had the same problem in Windows10. HotKey <F1>
don't work.
Master branch updated on 2 Jan, seems no fix included?
Thank you for your response. I will close this issue as soon as a new version is released.
When will the new version be released? Now it can only be installed through GitHub, and distribution is very inconvenient.
hello?
When will the new version be released? Now it can only be installed through GitHub, and distribution is very inconvenient.~
@jiayouzl, thank you for closing the issue, and I apologise for not reaching out earlier; I do get quite a lot of email from github, so I missed your messages.
I assume that you closed it because the new released version fixed the issue?
macos The above 2 lines of code are normal
macos The above 5 lines of code cannot be used normally.