View Single Post
Posts: 141 | Thanked: 417 times | Joined on Jun 2012 @ Malaysia
#23
Originally Posted by cckwes View Post
Here's an example showing how it works.

Code:
SipAttributes {
        id: sipAttributes
        actionKeyLabel: "Tweet"
        actionKeyHighlighted: true
        actionKeyEnabled: true
}

TextField {
                    id: twitText
                    font.pixelSize: 22
                    width: 350
                    placeholderText: "Write your tweet"
                    platformSipAttributes: sipAttributes
                    maximumLength: 30

                    Keys.onReturnPressed: twitText.closeSoftwareInputPanel();
}
Attached are the screenshot for with and without the SipAttributes. Hope it helps
oh, never know that it could be done like this! Actually I still quite newbie for the MeeGo Harmattan platform. Thanks alot!