Pressing Command + Backspace on MacOs normally deletes the current line.
Is it possible to reproduce this behaviour in QPlainTextEdit
? It works as expected with QLineEdit
.
Here's a minimal example to reproduce the issue:
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QKeySequence
app = QApplication([])
text = QPlainTextEdit()
window = QMainWindow()
window.setCentralWidget(text)
window.show()
app.exec_()
I am running the following: Python 3.6.10 PyQt5 5.14.1 MacOS 10.14.6