Fix lint
This commit is contained in:
parent
1b48b67443
commit
7ce7176475
@ -974,7 +974,7 @@ hints.uppercase:
|
|||||||
input.escape_quits_reporter:
|
input.escape_quits_reporter:
|
||||||
type: Bool
|
type: Bool
|
||||||
default: True
|
default: True
|
||||||
desc: Allow escape to quit the crash reporter.
|
desc: Allow Escape to quit the crash reporter.
|
||||||
|
|
||||||
input.forward_unbound_keys:
|
input.forward_unbound_keys:
|
||||||
default: auto
|
default: auto
|
||||||
|
@ -158,8 +158,8 @@ class _CrashDialog(QDialog):
|
|||||||
self._init_info_text()
|
self._init_info_text()
|
||||||
self._init_buttons()
|
self._init_buttons()
|
||||||
|
|
||||||
# Prevent closing :report dialogs when pressing <escape>
|
|
||||||
def keyPressEvent(self, e):
|
def keyPressEvent(self, e):
|
||||||
|
"""Prevent closing :report dialogs when pressing <Escape>."""
|
||||||
if config.val.input.escape_quits_reporter 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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user