Rename reporter.escape_quits to input.escape_quits_reporter

This commit is contained in:
Florian Bruhin 2018-06-09 20:19:32 +02:00
parent 486a92a710
commit 1b48b67443
2 changed files with 6 additions and 8 deletions

View File

@ -971,6 +971,11 @@ hints.uppercase:
## input ## input
input.escape_quits_reporter:
type: Bool
default: True
desc: Allow escape to quit the crash reporter.
input.forward_unbound_keys: input.forward_unbound_keys:
default: auto default: auto
type: type:
@ -2189,13 +2194,6 @@ fonts.web.size.minimum_logical:
maxval: maxint maxval: maxint
desc: Minimum logical font size (in pixels) that is applied when zooming out. 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 ## keybindings
bindings.key_mappings: bindings.key_mappings:

View File

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