summaryrefslogtreecommitdiff
path: root/Fields/TextArea.qml
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2021-09-05 16:23:41 +0200
committerTimotej Lazar <timotej.lazar@araneo.si>2021-09-16 20:33:39 +0200
commit54bb1c1c2be5fdd1b8e1eda7c9cd6fe40337800f (patch)
tree972edd9689c3d6a8e109c93eed00355fd96e3319 /Fields/TextArea.qml
parent8d44150598a4e04a751b7df0d8c91ea29099e10e (diff)
Clean up field types
Diffstat (limited to 'Fields/TextArea.qml')
-rw-r--r--Fields/TextArea.qml9
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()
}