diff --git a/declarativeimports/plasmacomponents/qml/TextArea.qml b/declarativeimports/plasmacomponents/qml/TextArea.qml index 65cde919b..f4ccddacc 100644 --- a/declarativeimports/plasmacomponents/qml/TextArea.qml +++ b/declarativeimports/plasmacomponents/qml/TextArea.qml @@ -151,6 +151,7 @@ Item { font.weight: theme.defaultFont.weight font.wordSpacing: theme.defaultFont.wordSpacing color: theme.viewTextColor + selectByMouse: true onCursorPositionChanged: { if (cursorRectangle.x < flickArea.contentX) { diff --git a/declarativeimports/plasmacomponents/qml/TextField.qml b/declarativeimports/plasmacomponents/qml/TextField.qml index 4611f7273..ed644f126 100644 --- a/declarativeimports/plasmacomponents/qml/TextField.qml +++ b/declarativeimports/plasmacomponents/qml/TextField.qml @@ -137,10 +137,12 @@ Item { anchors { left: parent.left right: parent.right + verticalCenter: parent.verticalCenter // TODO: see what is the correct policy for margins leftMargin: 2 * base.margins.left rightMargin: 2 * base.margins.right } + selectByMouse: true y: (height - font.pixelSize) * 0.4 // XXX: verticalCenter anchor is not centering the text height: Math.min(2 * font.pixelSize, parent.height) color: theme.textColor