summaryrefslogtreecommitdiffstats
path: root/demos/declarative/photoviewer
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/photoviewer')
-rw-r--r--demos/declarative/photoviewer/PhotoViewerCore/EditableButton.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/declarative/photoviewer/PhotoViewerCore/EditableButton.qml b/demos/declarative/photoviewer/PhotoViewerCore/EditableButton.qml
index 6109535..be7dfa4 100644
--- a/demos/declarative/photoviewer/PhotoViewerCore/EditableButton.qml
+++ b/demos/declarative/photoviewer/PhotoViewerCore/EditableButton.qml
@@ -64,6 +64,10 @@ Item {
container.labelChanged(textInput.text)
container.focus = true
}
+ Keys.onEnterPressed: {
+ container.labelChanged(textInput.text)
+ container.focus = true
+ }
Keys.onEscapePressed: {
textInput.text = container.label
container.focus = true