electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 082b2b35856f56c6664f17372dcb0a13735fe2a9
parent c69ce73814d638246a18ef72094c8dec1cd0ca2b
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue, 13 Oct 2020 19:21:32 +0200

qt console: fix copying text using Ctrl+C

follow-up #6643

Diffstat:
Melectrum/gui/qt/console.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py @@ -292,7 +292,8 @@ class Console(QtWidgets.QPlainTextEdit): elif event.key() == QtCore.Qt.Key_L and event.modifiers() == QtCore.Qt.ControlModifier: self.clear() elif event.key() == QtCore.Qt.Key_C and event.modifiers() == QtCore.Qt.ControlModifier: - self.keyboard_interrupt() + if not self.textCursor().selectedText(): + self.keyboard_interrupt() super(Console, self).keyPressEvent(event)