~phablet-team/messaging-app/select-part-of-message

« back to all changes in this revision

Viewing changes to src/qml/MessagingContactEditorPage.qml

  • Committer: Tiago Salem Herrmann
  • Date: 2017-02-08 21:04:29 UTC
  • mfrom: (639.12.11 sort-thread)
  • Revision ID: tiago.herrmann@canonical.com-20170208210429-kk2s6v6jbxj8qnmr
merge parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
        text: i18n.tr("Cancel")
37
37
        iconName: "back"
 
38
        shortcut: "Esc"
38
39
        onTriggered: {
39
40
            root.cancel()
40
41
            root.active = false
47
48
 
48
49
            text: i18n.tr("Save")
49
50
            iconName: "ok"
 
51
            shortcut: "Ctrl+S"
50
52
            enabled: root.isContactValid
51
53
            onTriggered: root.save()
52
54
        }
53
55
    ]
54
56
 
 
57
    onActiveChanged: {
 
58
        if (active)
 
59
            forceActiveFocus()
 
60
    }
 
61
 
55
62
    onContactSaved: {
56
63
        if (root.contactListPage) {
57
64
            if (root.contactListPage.phoneToAdd !== "") {