Insert only paragraph separators in the field.
This commit is contained in:
parent
6aa6a143bf
commit
8e2cfbf303
1 changed files with 2 additions and 0 deletions
|
|
@ -2689,6 +2689,8 @@ void InputField::keyPressEventInner(QKeyEvent *e) {
|
||||||
const auto oldPosition = textCursor().position();
|
const auto oldPosition = textCursor().position();
|
||||||
if (enter && ctrl) {
|
if (enter && ctrl) {
|
||||||
e->setModifiers(e->modifiers() & ~Qt::ControlModifier);
|
e->setModifiers(e->modifiers() & ~Qt::ControlModifier);
|
||||||
|
} else if (enter && shift) {
|
||||||
|
e->setModifiers(e->modifiers() & ~Qt::ShiftModifier);
|
||||||
}
|
}
|
||||||
_inner->QTextEdit::keyPressEvent(e);
|
_inner->QTextEdit::keyPressEvent(e);
|
||||||
auto cursor = textCursor();
|
auto cursor = textCursor();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue