code: def keyPressEvent(self, event):
          
          # tag the item for deletion
          if self.useDefaultKeystrokes() and self.isEditable():
              if event.key() == Qt.Key_Delete:
                  for item in self.selectedItems():
                      item.setRecordState(XOrbRecordItem.State.Removed)
              
              # save/commit to the database
              elif event.key() == Qt.Key_S and\
                   event.modifiers() == Qt.ControlModifier:
                  self.commit()
          
          super(XOrbTreeWidget, self).keyPressEvent(event)
docs: Listen for the delete key and check to see if this should auto
          set the remove property on the object.
          
          :param      event | <QKeyPressEvent>