1
0

qt console: fix copying text using Ctrl+C

follow-up #6643
This commit is contained in:
SomberNight
2020-10-13 19:21:32 +02:00
parent c69ce73814
commit 082b2b3585

View File

@@ -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)