import org.kde.plasma.components 0.1 as PlasmaComponents
22
23
import "private" as Private
23
24
24
25
/**
27
28
FocusScope {
28
29
id: textField
29
30
31
32
property int selectStart
33
property int selectEnd
34
property int curPos
30
35
// Common API
31
36
/**
32
37
* Whether the text field is highlighted or not
358
363
}
359
364
onAccepted: textField.accepted()
360
365
Keys.forwardTo: textField
366
MouseArea {
367
anchors.fill: parent
368
acceptedButtons: Qt.RightButton
369
onClicked: {
370
// FIXME: We're having to cache these and recreating the selection because TextInput's implementation clears the selection on focus loss; this should be re-evaluated and hopefully dropped in future versions