22 property bool active:
true
24 anchors.left: parent.left
25 anchors.right: parent.right
26 anchors.bottom: parent.bottom
27 height: active && Qt.inputMethod.visible ? Qt.inputMethod.keyboardRectangle.height : 0
32 when: keyboardRect.height === 0
36 when: keyboardRect.height === Qt.inputMethod.keyboardRectangle.height
40 function recursiveFindFocusedItem(parent) {
41 if (parent.activeFocus) {
45 for (var i in parent.children) {
46 var child = parent.children[i];
47 if (child.activeFocus) {
51 var item = recursiveFindFocusedItem(child);
62 target: Qt.inputMethod
65 if (!Qt.inputMethod.visible) {
66 var focusedItem = recursiveFindFocusedItem(keyboardRect.parent);
67 if (focusedItem !=
null) {
68 focusedItem.focus =
false;