diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 7aa3f3933..c6a0443f7 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -974,7 +974,7 @@ hints.uppercase: input.escape_quits_reporter: type: Bool default: True - desc: Allow escape to quit the crash reporter. + desc: Allow Escape to quit the crash reporter. input.forward_unbound_keys: default: auto diff --git a/qutebrowser/misc/crashdialog.py b/qutebrowser/misc/crashdialog.py index 8585e69c4..27dec3345 100644 --- a/qutebrowser/misc/crashdialog.py +++ b/qutebrowser/misc/crashdialog.py @@ -158,8 +158,8 @@ class _CrashDialog(QDialog): self._init_info_text() self._init_buttons() - # Prevent closing :report dialogs when pressing def keyPressEvent(self, e): + """Prevent closing :report dialogs when pressing .""" if config.val.input.escape_quits_reporter or e.key() != Qt.Key_Escape: super().keyPressEvent(e)