Add an option to disable escape in the report dialog
This commit is contained in:
parent
40e391e199
commit
cd56b97e7d
@ -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:
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user