ThibH
1/16/2018 - 5:12 PM

Add shortcut to listwidget

delShortcut = QtGui.QShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Delete), self.listWidget)
delShortcut.activated.connect(self.deleteAssetName)

def deleteAssetName(self):
     self.listWidget.takeItem(self.listWidget.currentRow())