Closed ghost closed 3 years ago
System Information
Expected behavior Though "Caps Lock" key plays no function in Blender, but its keypress should not cause error.
Description about the bug When "Caps Lock" key pressed, the addon "Screencast Keys" crash and prompt error msg,
Python: Traceback (most recent call last): File "Z:\blender_2.91\2.91\scripts\addons_contrib\screencastkeys\ops.py", line 587, in modal event_type = EventType[event.type] File "Z:\blender_2.91\2.91\python\lib\enum.py", line 352, in getitem return cls._membermap[name] KeyError: '' location: :-1
Python: Traceback (most recent call last): File "Z:\blender_2.91\2.91\scripts\addons_contrib\screencastkeys\ops.py", line 587, in modal event_type = EventType[event.type] File "Z:\blender_2.91\2.91\python\lib\enum.py", line 352, in getitem return cls._membermap[name] KeyError: ''
location: :-1
Additional comments [Optional] When addon crashed, deactivate then activate the addon in N-panel will recover from the error.
This issue has already fixed since v3.1. c.f. #7
System Information
Expected behavior
Though "Caps Lock" key plays no function in Blender, but its keypress should not cause error.
Description about the bug
When "Caps Lock" key pressed, the addon "Screencast Keys" crash and prompt error msg,
Additional comments [Optional] When addon crashed, deactivate then activate the addon in N-panel will recover from the error.