short bug fix
This commit is contained in:
parent
298dba4d6c
commit
01854ff2d0
3 changed files with 12 additions and 6 deletions
|
|
@ -20,7 +20,7 @@ class MessageArea(QtGui.QPlainTextEdit):
|
|||
def keyPressEvent(self, event):
|
||||
if event.matches(QtGui.QKeySequence.Paste):
|
||||
self.pasteEvent()
|
||||
elif event.key() == QtCore.Qt.Key_Return:
|
||||
elif event.key() in (QtCore.Qt.Key_Return, QtCore.Qt.Key_Enter):
|
||||
modifiers = event.modifiers()
|
||||
if modifiers & QtCore.Qt.ControlModifier or modifiers & QtCore.Qt.ShiftModifier:
|
||||
self.insertPlainText('\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue