Key.onReturnedPressed not emitted in TextArea
QML and Qt Quick
5
Posts
3
Posters
2.2k
Views
1
Watching
-
The signal Key.onReturnedPressed doesn't emit when using in a TextArea. It do work on TextField but not TextArea. Is this a bug or normal behavior? I using MeeGo's Qt Quick Component on N9 with PR1.2. The code is like:
@import QtQuick 1.1
import com.nokia.meego 1.0TextArea{
anchors.fill: parent
Keys.onReturnPressed: console.log("Key.onReturnedPressed")
platformSipAttributes: SipAttributes {
actionKeyEnabled: true
actionKeyHighlighted: true
actionKeyLabel: "RETURN"
}
}@Any fix/workaround for this?
-
Looks like you need a focus: true on that TextArea so that it receives key events.
-
not that problem, it is already get focus, if not i won't able to type on it using the keyboard
-
I have no idea, then. Sorry. :(