src/eric7/EricWidgets/EricTreeView.py

branch
eric7
changeset 10423
299802979277
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10422:e28b89693f37 10423:299802979277
18 18
19 def keyPressEvent(self, evt): 19 def keyPressEvent(self, evt):
20 """ 20 """
21 Protected method implementing special key handling. 21 Protected method implementing special key handling.
22 22
23 @param evt reference to the event (QKeyEvent) 23 @param evt reference to the event
24 @type QKeyEvent
24 """ 25 """
25 if ( 26 if (
26 evt.key() in [Qt.Key.Key_Delete, Qt.Key.Key_Backspace] 27 evt.key() in [Qt.Key.Key_Delete, Qt.Key.Key_Backspace]
27 and self.model() is not None 28 and self.model() is not None
28 ): 29 ):

eric ide

mercurial