<div></div>Hi,<br>I need to avoid features deletion in some layers both from button and from keyboard. <br><br>How can I perform this in pyqgis?<br><br>I have disabled the button with these comand:<br><span>    </span>iface.actionDeleteSelected().setDisabled(True)<br><br>but the features can be deleted with the backspace or Del.<br><br>Enrico<br><br><br><br><br>