tqt console: fix copying text using Ctrl+C - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 082b2b35856f56c6664f17372dcb0a13735fe2a9 DIR parent c69ce73814d638246a18ef72094c8dec1cd0ca2b HTML 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: M electrum/gui/qt/console.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py t@@ -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)