From 508793b0101a2840283e21f8dba4390c3dd7624e Mon Sep 17 00:00:00 2001 From: Mark B Lundeberg <36528214+markblundeberg@users.noreply.github.com> Date: Mon, 8 Oct 2018 15:04:45 -0700 Subject: [PATCH] qt transaction_dialog: normal close if user presses Esc (Electron-Cash/Electron-Cash#890) --- electrum/gui/qt/transaction_dialog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electrum/gui/qt/transaction_dialog.py b/electrum/gui/qt/transaction_dialog.py index 495bad317..9106979d1 100644 --- a/electrum/gui/qt/transaction_dialog.py +++ b/electrum/gui/qt/transaction_dialog.py @@ -178,6 +178,10 @@ class TxDialog(QDialog, MessageBoxMixin): except ValueError: pass # was not in list already + def reject(self): + # Override escape-key to close normally (and invoke closeEvent) + self.close() + def show_qr(self): text = bfh(str(self.tx)) text = base_encode(text, base=43)