catch specific KeyError exception
This commit is contained in:
parent
6f49ede5c1
commit
cbc9b4d310
@ -486,7 +486,7 @@ class GLViewWidget(QtWidgets.QOpenGLWidget):
|
||||
return
|
||||
try:
|
||||
del self.keysPressed[ev.key()]
|
||||
except:
|
||||
except KeyError:
|
||||
self.keysPressed = {}
|
||||
self.evalKeyState()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user