fix erroneous point deletion
@@ -53,7 +53,7 @@ class QtLayerList(QtListView[Layer]):
def keyPressEvent(self, e: QKeyEvent) -> None:
"""Override Qt event to pass events to the viewer."""
- if e.key() != Qt.Key_Space:
+ if e.key() != Qt.Key.Key_Space:
super().keyPressEvent(e)
-
+ if e.key() not in (Qt.Key.Key_Backspace, Qt.Key.Key_Delete):
e.ignore() # pass key events up to viewer
