536 self.tr("Import Bookmarks"), |
536 self.tr("Import Bookmarks"), |
537 self.tr( |
537 self.tr( |
538 "The bookmarks file <b>{0}</b> has invalid contents." |
538 "The bookmarks file <b>{0}</b> has invalid contents." |
539 ).format(filename), |
539 ).format(filename), |
540 ) |
540 ) |
|
541 |
|
542 def keyPressEvent(self, evt): |
|
543 """ |
|
544 Protected method handling key press events. |
|
545 |
|
546 @param evt reference to the key press event |
|
547 @type QKeyEvent |
|
548 """ |
|
549 if evt.key() == Qt.Key.Key_Escape: |
|
550 self.escapePressed.emit() |