diff --git a/README.md b/README.md index 7af47203..bac74a8a 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,6 @@ [![windows](https://github.com/Jordan-Pierce/CoralNet-Toolbox/actions/workflows/windows.yml/badge.svg)](https://pypi.org/project/CoralNet-Toolbox) [![macos](https://github.com/Jordan-Pierce/CoralNet-Toolbox/actions/workflows/macos.yml/badge.svg)](https://pypi.org/project/CoralNet-Toolbox) [![ubuntu](https://github.com/Jordan-Pierce/CoralNet-Toolbox/actions/workflows/ubuntu.yml/badge.svg)](https://pypi.org/project/CoralNet-Toolbox) -[![downloads](https://static.pepy.tech/badge/coralnet-toolbox)](https://pepy.tech/projects/coralnet-toolbox) - diff --git a/coralnet_toolbox/QtAnnotationWindow.py b/coralnet_toolbox/QtAnnotationWindow.py index b5822d12..1ad2cb8a 100644 --- a/coralnet_toolbox/QtAnnotationWindow.py +++ b/coralnet_toolbox/QtAnnotationWindow.py @@ -137,10 +137,11 @@ def keyPressEvent(self, event): self.tools[self.selected_tool].keyPressEvent(event) super().keyPressEvent(event) - # Handle the hot key for deleting - if event.modifiers() & Qt.ControlModifier and event.key() == Qt.Key_Delete: - if self.selected_annotations: - self.delete_selected_annotation() + # Handle the hot key for deleting (backspace or delete) selected annotations + if event.modifiers() & Qt.ControlModifier: + if event.key() == Qt.Key_Delete or event.key() == Qt.Key_Backspace: + if self.selected_annotations: + self.delete_selected_annotation() def keyReleaseEvent(self, event): if self.active_image and self.selected_tool: diff --git a/coralnet_toolbox/QtMainWindow.py b/coralnet_toolbox/QtMainWindow.py index 33dcefbe..233711b4 100644 --- a/coralnet_toolbox/QtMainWindow.py +++ b/coralnet_toolbox/QtMainWindow.py @@ -513,7 +513,7 @@ def __init__(self): self.slicer_tool_action = QAction(self.slicer_icon, "Slicer", self) self.slicer_tool_action.setCheckable(False) self.slicer_tool_action.triggered.connect(self.toggle_tool) - self.toolbar.addAction(self.slicer_tool_action) + # self.toolbar.addAction(self.slicer_tool_action) TODO self.toolbar.addSeparator()