6579 Private method to handle the delete action. |
6579 Private method to handle the delete action. |
6580 """ |
6580 """ |
6581 if QApplication.focusWidget() == ericApp().getObject("Shell"): |
6581 if QApplication.focusWidget() == ericApp().getObject("Shell"): |
6582 ericApp().getObject("Shell").clear() |
6582 ericApp().getObject("Shell").clear() |
6583 else: |
6583 else: |
6584 self.activeWindow().clear() |
6584 if EricMessageBox.yesNo( |
|
6585 self, |
|
6586 self.tr("Clear Editor"), |
|
6587 self.tr("Do you really want to delete all text of the current editor?"), |
|
6588 ): |
|
6589 self.activeWindow().clear() |
6585 |
6590 |
6586 def __editJoin(self): |
6591 def __editJoin(self): |
6587 """ |
6592 """ |
6588 Private method to handle the join action. |
6593 Private method to handle the join action. |
6589 """ |
6594 """ |