Skip to content

Commit 6ad534f

Browse files
committed
bug fix
1 parent 0c11c6b commit 6ad534f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

app.qml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,33 @@ QbApp{
2323

2424
KeyNavigation.tab: objSearchField
2525

26+
Connections{
27+
target: Qt.inputMethod
28+
onVisibleChanged:{
29+
if(!Qt.inputMethod.visible){
30+
objAndroidExtras.enableFullScreen();
31+
objCVContentGrid.forceActiveFocus();
32+
}
33+
else{
34+
objAndroidExtras.disableFullScreen();
35+
}
36+
}
37+
onKeyboardRectangleChanged: {
38+
if (Qt.inputMethod.visible) {
39+
}
40+
}
41+
}
42+
2643
Keys.onReleased: {
2744
event.accepted = false;
2845
if (event.key === Qt.Key_Back || event.key === Qt.Key_Escape) {
2946
if(Qt.inputMethod.visible){
3047
Qt.inputMethod.hide();
3148
event.accepted = true;
49+
}
50+
else{
3251
objAndroidExtras.enableFullScreen();
33-
objMainAppUi.forceActiveFocus();
52+
objCVContentGrid.forceActiveFocus();
3453
}
3554
}
3655
}

0 commit comments

Comments
 (0)