This commit is contained in:
Florian Bruhin 2018-06-09 20:20:08 +02:00
parent 1b48b67443
commit 7ce7176475
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -158,8 +158,8 @@ class _CrashDialog(QDialog):
self._init_info_text()
self._init_buttons()
# Prevent closing :report dialogs when pressing <escape>
def keyPressEvent(self, e):
"""Prevent closing :report dialogs when pressing <Escape>."""
if config.val.input.escape_quits_reporter or e.key() != Qt.Key_Escape:
super().keyPressEvent(e)