pkkid / x11pygrid

Quickly move windows around the an X11 desktop
GNU General Public License v2.0
324 stars 41 forks source link

KeyError on Windows key #24

Open silbermantel opened 4 years ago

silbermantel commented 4 years ago

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.