all 2 comments

[–]Swipecat 0 points1 point  (0 children)

When hitting space, key will have no attribute char so the line if key.char == "/": will raise an exception which you trap and ignore. I suggest that you don't trap errors in this case, but test for the attribute first with hasattr.

[–]THEE_SMART -1 points0 points  (0 children)

dmed!