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