diff options
Diffstat (limited to 'Fields/TextArea.qml')
| -rw-r--r-- | Fields/TextArea.qml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Fields/TextArea.qml b/Fields/TextArea.qml index 7be3564..9b44c35 100644 --- a/Fields/TextArea.qml +++ b/Fields/TextArea.qml @@ -24,7 +24,6 @@ Label { id: popup width: parent.width - height: input.height padding: 0 onOpened: { @@ -35,15 +34,13 @@ Label { TextArea { id: input + anchors.fill: parent padding: 2 - topPadding: 0 - bottomPadding: 0 - width: parent.width wrapMode: TextEdit.Wrap Keys.onPressed: { - if (event.modifiers === Qt.NoModifier) { - if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { + if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) { + if (event.modifiers === Qt.NoModifier) { value = input.text.trim() popup.close() } |
