aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/dialogs/qml/TextField.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/dialogs/qml/TextField.qml')
-rw-r--r--src/imports/dialogs/qml/TextField.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/imports/dialogs/qml/TextField.qml b/src/imports/dialogs/qml/TextField.qml
index 9a6427a105..e67155086c 100644
--- a/src/imports/dialogs/qml/TextField.qml
+++ b/src/imports/dialogs/qml/TextField.qml
@@ -47,6 +47,8 @@ Item {
property alias text: textInput.text
signal accepted
signal downPressed
+ signal backPressed
+ signal escapePressed
implicitWidth: textInput.implicitWidth + rect.radius * 2
implicitHeight: textInput.implicitHeight
@@ -55,6 +57,11 @@ Item {
textInput.copy()
}
+ function paste() {
+ textInput.selectAll()
+ textInput.paste()
+ }
+
SystemPalette { id: palette }
height: textInput.implicitHeight + 8
clip: true
@@ -76,5 +83,7 @@ Item {
verticalAlignment: Text.AlignVCenter
onAccepted: root.accepted()
Keys.onDownPressed: root.downPressed()
+ Keys.onBackPressed: root.backPressed()
+ Keys.onEscapePressed: root.escapePressed()
}
}