Add an option to disable escape in the report dialog

This commit is contained in:
Jay Kamat 2018-05-24 11:49:18 -07:00
parent 40e391e199
commit cd56b97e7d
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5
2 changed files with 8 additions and 1 deletions

View File

@ -2179,6 +2179,13 @@ fonts.web.size.minimum_logical:
maxval: maxint
desc: Minimum logical font size (in pixels) that is applied when zooming out.
## reporter
reporter.escape_quits:
type: Bool
default: True
desc: Allow escape to quit the crash reporter.
## keybindings
bindings.key_mappings:

View File

@ -160,7 +160,7 @@ class _CrashDialog(QDialog):
# Prevent closing :report dialogs when pressing <escape>
def keyPressEvent(self, e):
if e.key() != Qt.Key_Escape:
if config.val.reporter.escape_quits or e.key() != Qt.Key_Escape:
super().keyPressEvent(e)
def __repr__(self):