Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError on Windows key #24

Open
silbermantel opened this issue Jul 12, 2020 · 0 comments
Open

KeyError on Windows key #24

silbermantel opened this issue Jul 12, 2020 · 0 comments

Comments

@silbermantel
Copy link

while experimenting with key bindings I noticed pygrid stopped working all together on occasion.
back with the default key bindings I could reproduce

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 671, in <lambda> func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data) File "/home/silbermantel/bin/pygrid.py", line 102, in _check_event command = self.keys[event.detail] KeyError: 37
by pressing the windows key and tapping Ctlr

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 671, in <lambda> func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data) File "/home/silbermantel/bin/pygrid.py", line 102, in _check_event command = self.keys[event.detail] KeyError: 64
by pressing the windows key and tapping Alt

while pressing (Alt or Ctrl) and tapping WindowsKey would not cause an Error.
on both KeyErrors the script will continue to run but no longer process keystrokes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant